Remove from session expiredVerificationCode and successAddPassword flags

This commit is contained in:
Sofia Baltzi 2018-03-13 12:10:49 +00:00
parent 85a582f48b
commit 90bed6d044
2 changed files with 7 additions and 2 deletions

View File

@ -9,8 +9,10 @@
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% if (session.getAttribute("expiredVerificationCode") == null) {
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
} else if (session.getAttribute("expiredVerificationCode")!=null) {
session.removeAttribute("expiredVerificationCode");
}%>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<head>

View File

@ -12,6 +12,9 @@
<% if (session.getAttribute("successAddPassword") == null) {
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
} else if (session.getAttribute("successAddPassword")!=null) {
session.removeAttribute("successAddPassword");
}%>
<META HTTP-EQUIV=Refresh CONTENT="0.5; URL=http://beta.services.openaire.eu/uoa-user-management/openid_connect_login">
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">