Commit b17d20f5 by Nilu

redirect user to sign in page after resetting password

parent 96d53642
...@@ -10,10 +10,9 @@ import oneit.servlets.process.*; ...@@ -10,10 +10,9 @@ import oneit.servlets.process.*;
import oneit.utils.*; import oneit.utils.*;
import performa.orm.Candidate; import performa.orm.Candidate;
import performa.orm.CompanyUser; import performa.orm.CompanyUser;
import performa.utils.Utils;
public class ResetPasswordFP extends ORMProcessFormProcessor public class ResetPasswordFP extends SaveFP
{ {
private static final LoggingArea LOG = LoggingArea.createLoggingArea("ResetPasswordFP"); private static final LoggingArea LOG = LoggingArea.createLoggingArea("ResetPasswordFP");
...@@ -35,7 +34,8 @@ public class ResetPasswordFP extends ORMProcessFormProcessor ...@@ -35,7 +34,8 @@ public class ResetPasswordFP extends ORMProcessFormProcessor
{ {
candidate.setForgotPasswordKey(null); candidate.setForgotPasswordKey(null);
} }
return Utils.processSuccessfulLogin(process, submission, params, user);
return super.processForm(process, submission, params);
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
String candidateID = (String) process.getAttribute("candidateID"); //request.getParameter("id"); String candidateID = (String) process.getAttribute("candidateID"); //request.getParameter("id");
String forgotpasswordCode = (String) process.getAttribute("forgotpasswordCode"); //request.getParameter("key"); String forgotpasswordCode = (String) process.getAttribute("forgotpasswordCode"); //request.getParameter("key");
SecUser user = (SecUser) process.getAttribute("SecUser"); SecUser user = (SecUser) process.getAttribute("SecUser");
String nextPage = WebUtils.getArticleLink(request, objTran, WebUtils.JOB_APPLICATION, "SignIn"); String nextPage = WebUtils.getSamePageInRenderMode(request, "SignIn");
Job job = (Job) process.getAttribute("Job"); Job job = (Job) process.getAttribute("Job");
if(request.getParameter("id")!= null) if(request.getParameter("id")!= null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment