Remove from session error and registerSuccess flags in jsp pages

This commit is contained in:
Sofia Baltzi 2018-03-13 12:20:26 +00:00
parent 90bed6d044
commit d42f4f223f
4 changed files with 10 additions and 6 deletions

View File

@ -11,6 +11,8 @@
<% if (session.getAttribute("error") == null) { <% if (session.getAttribute("error") == null) {
String redirectURL = request.getContextPath() + "/error404.jsp"; String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL); response.sendRedirect(redirectURL);
} else if (session.getAttribute("error") != null) {
session.removeAttribute("error");
}%> }%>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/"> <html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<head> <head>

View File

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