Remove from session error and registerSuccess flags in jsp pages
This commit is contained in:
parent
90bed6d044
commit
d42f4f223f
|
@ -9,8 +9,10 @@
|
|||
<!DOCTYPE html>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<% if (session.getAttribute("error") == null) {
|
||||
String redirectURL = request.getContextPath() + "/error404.jsp";
|
||||
response.sendRedirect(redirectURL);
|
||||
String redirectURL = request.getContextPath() + "/error404.jsp";
|
||||
response.sendRedirect(redirectURL);
|
||||
} else if (session.getAttribute("error") != null) {
|
||||
session.removeAttribute("error");
|
||||
}%>
|
||||
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
|
||||
<head>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<% if (session.getAttribute("expiredVerificationCode") == null) {
|
||||
String redirectURL = request.getContextPath() + "/error404.jsp";
|
||||
response.sendRedirect(redirectURL);
|
||||
} else if (session.getAttribute("expiredVerificationCode")!=null) {
|
||||
} else if (session.getAttribute("expiredVerificationCode") != null) {
|
||||
session.removeAttribute("expiredVerificationCode");
|
||||
}%>
|
||||
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
|
||||
|
|
|
@ -9,8 +9,10 @@
|
|||
<!DOCTYPE html>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<% if (session.getAttribute("registerSuccess") == null) {
|
||||
String redirectURL = request.getContextPath() + "/error404.jsp";
|
||||
response.sendRedirect(redirectURL);
|
||||
String redirectURL = request.getContextPath() + "/error404.jsp";
|
||||
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">
|
||||
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
String redirectURL = request.getContextPath() + "/error404.jsp";
|
||||
response.sendRedirect(redirectURL);
|
||||
|
||||
} else if (session.getAttribute("successAddPassword")!=null) {
|
||||
} 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">
|
||||
|
|
Loading…
Reference in New Issue