Project

General

Profile

« Previous | Next » 

Revision 49552

Added by Sofia Baltzi over 6 years ago

Redirect to forgotPassword if the username in the session is null

View differences:

resetPassword.jsp
1 1
<!DOCTYPE html>
2 2
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3
<%--<% if (session.getAttribute("username") == null) {--%>
4
  <%--String redirectURL = "/dnet-openaire-users-1.0.0-SNAPSHOT/forgotPassword.jsp";--%>
5
  <%--response.sendRedirect(redirectURL);--%>
6
  <%--}--%>
7
<%--%>--%>
3
<% if (session.getAttribute("username") == null) {
4
  String redirectURL = "/dnet-openaire-users-1.0.0-SNAPSHOT/forgotPassword.jsp";
5
  response.sendRedirect(redirectURL);
6
  }
7
%>
8 8
<%--<%String name=(String)request.getAttribute("name");--%>
9 9
  <%--out.print("your name"+name);%>--%>
10 10
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
......
85 85

  
86 86
                          // When the user starts to type something inside the password field
87 87
                          myInput.onkeyup = function() {
88
                            
88

  
89 89
                            // Validate lowercase letters
90 90
                            var lowerCaseLetters = /[a-z]/g;
91 91
                            if (myInput.value.match(lowerCaseLetters)) {

Also available in: Unified diff