Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clj13001 committed Apr 22, 2017
1 parent c3315bb commit 180e81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebContent/passwordreset.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ if(request.getParameter("reset") != null){
*/
ResultSet set = stmt.executeQuery("SELECT * from employee WHERE Email = \'" + email + "\' AND Employee_ID = " + ssoNum);
if(set.next()){
success = 1;
stmt.executeUpdate("UPDATE admin SET Password = \"" + hashpass + "\", Password_Flag = 0 WHERE Admin_ID = " + ssoNum);
User changepass = new User(ssoNum,
set.getInt("Location_ID"),
set.getString("Name"),
set.getString("Phone_Number"),
set.getString("Email"),
set.getInt("Img_Index"),
set.getInt("Notification_Preference"));
success = 1;
stmt.executeUpdate("UPDATE admin SET Password = \"" + hashpass + "\", Password_Flag = 0 WHERE Admin_ID = " + ssoNum);
stmt.close();
connection.close();
new Mail(changepass).sendTemporaryPassword(newpass);
Expand Down

0 comments on commit 180e81a

Please sign in to comment.