Commit b17d20f5 by Nilu

redirect user to sign in page after resetting password

parent 96d53642
......@@ -10,10 +10,9 @@ import oneit.servlets.process.*;
import oneit.utils.*;
import performa.orm.Candidate;
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");
......@@ -24,7 +23,7 @@ public class ResetPasswordFP extends ORMProcessFormProcessor
SecUser user = (SecUser) process.getAttribute("SecUser");
CompanyUser companyUser = user.getExtension(CompanyUser.REFERENCE_CompanyUser);
Candidate candidate = user.getExtension(Candidate.REFERENCE_Candidate);
LogMgr.log(LOG, LogLevel.PROCESSING1, "Inside ResetPasswordFP user:", user," companyUser:", companyUser, " candidate:", candidate);
if(companyUser != null)
......@@ -35,7 +34,8 @@ public class ResetPasswordFP extends ORMProcessFormProcessor
{
candidate.setForgotPasswordKey(null);
}
return Utils.processSuccessfulLogin(process, submission, params, user);
return super.processForm(process, submission, params);
}
......
......@@ -12,7 +12,7 @@
String candidateID = (String) process.getAttribute("candidateID"); //request.getParameter("id");
String forgotpasswordCode = (String) process.getAttribute("forgotpasswordCode"); //request.getParameter("key");
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");
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