Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
b17d20f5
Commit
b17d20f5
authored
Sep 22, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redirect user to sign in page after resetting password
parent
96d53642
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ResetPasswordFP.java
cmsWebApp/src/performa/form/ResetPasswordFP.java
+4
-4
reset_password.jsp
...App/webroot/extensions/applicantportal/reset_password.jsp
+1
-1
No files found.
cmsWebApp/src/performa/form/ResetPasswordFP.java
View file @
b17d20f5
...
@@ -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"
);
...
@@ -24,7 +23,7 @@ public class ResetPasswordFP extends ORMProcessFormProcessor
...
@@ -24,7 +23,7 @@ public class ResetPasswordFP extends ORMProcessFormProcessor
SecUser
user
=
(
SecUser
)
process
.
getAttribute
(
"SecUser"
);
SecUser
user
=
(
SecUser
)
process
.
getAttribute
(
"SecUser"
);
CompanyUser
companyUser
=
user
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
);
CompanyUser
companyUser
=
user
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
);
Candidate
candidate
=
user
.
getExtension
(
Candidate
.
REFERENCE_Candidate
);
Candidate
candidate
=
user
.
getExtension
(
Candidate
.
REFERENCE_Candidate
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Inside ResetPasswordFP user:"
,
user
,
" companyUser:"
,
companyUser
,
" candidate:"
,
candidate
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Inside ResetPasswordFP user:"
,
user
,
" companyUser:"
,
companyUser
,
" candidate:"
,
candidate
);
if
(
companyUser
!=
null
)
if
(
companyUser
!=
null
)
...
@@ -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
);
}
}
...
...
cmsWebApp/webroot/extensions/applicantportal/reset_password.jsp
View file @
b17d20f5
...
@@ -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.get
ArticleLink(request, objTran, WebUtils.JOB_APPLICATION
, "SignIn");
String nextPage = WebUtils.get
SamePageInRenderMode(request
, "SignIn");
Job job = (Job) process.getAttribute("Job");
Job job = (Job) process.getAttribute("Job");
if(request.getParameter("id")!= null)
if(request.getParameter("id")!= null)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment