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
684a8695
Commit
684a8695
authored
Aug 30, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated forgot and reset password functions.
parent
23fb5e89
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
ForgotPasswordFP.java
cmsWebApp/src/performa/form/ForgotPasswordFP.java
+3
-3
forgot_password.jsp
cmsWebApp/webroot/extensions/adminportal/forgot_password.jsp
+1
-1
reset_password.jsp
cmsWebApp/webroot/extensions/adminportal/reset_password.jsp
+8
-8
No files found.
cmsWebApp/src/performa/form/ForgotPasswordFP.java
View file @
684a8695
...
...
@@ -11,7 +11,6 @@ import oneit.objstore.ObjectTransaction;
import
oneit.objstore.StorageException
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.security.SecUser
;
import
oneit.security.SecUserExtension
;
import
oneit.servlets.forms.*
;
import
oneit.servlets.process.*
;
import
oneit.utils.*
;
...
...
@@ -38,6 +37,9 @@ public class ForgotPasswordFP extends SaveFP
Debug
.
assertion
(
email
!=
null
,
"Email not avaialble"
);
email
=
StringUtils
.
trim
(
email
);
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Started to send pasword reset link email."
,
email
);
SecUser
secUser
=
SecUser
.
searchNAME
(
process
.
getTransaction
(),
email
);
...
...
@@ -81,8 +83,6 @@ public class ForgotPasswordFP extends SaveFP
ObjectTransform
transform
=
new
StringUtils
.
NullToBlankPostTransform
(
new
ErrorTransform
(
compoundTransform
));
try
{
resetCodeEmailer
.
sendMail
(
transform
,
new
String
[]
{
email
});
...
...
cmsWebApp/webroot/extensions/adminportal/forgot_password.jsp
View file @
684a8695
...
...
@@ -26,7 +26,7 @@
function
validate
()
{
var
empty
=
false
;
$
(
'input[required]'
).
each
(
function
()
{
if
(
$
(
this
).
val
(
)
==
''
)
{
if
(
$
.
trim
(
$
(
this
).
val
()
)
==
''
)
{
empty
=
true
;
if
(
$
(
this
).
css
(
'background-color'
)
==
'rgb(250, 255, 189)'
)
{
empty
=
false
;
...
...
cmsWebApp/webroot/extensions/adminportal/reset_password.jsp
View file @
684a8695
...
...
@@ -34,12 +34,12 @@
{
user =
adminUser.getUser();
if
(
StringUtils
.
subBlanks
(
forgotpasswordCode
)
!=
null
)
{
RandomStringGen
random =
new
RandomStringGen
();
user
.
setAttribute
("
md5:Password
",
random
.
generateAlphaNum
(
8
));
}
//
if
(
StringUtils
.
subBlanks
(
forgotpasswordCode
)
!=
null
)
//
{
//
RandomStringGen
random =
new
RandomStringGen
();
//
//
user
.
setAttribute
("
md5:Password
",
random
.
generateAlphaNum
(
8
));
//
}
process
.
setAttribute
("
SecUser
",
user
);
}
...
...
@@ -66,7 +66,7 @@
function
validate
()
{
var
empty
=
false
;
$
(
'.password-field'
).
each
(
function
()
{
if
(
$
(
this
).
val
(
)
==
''
)
{
if
(
$
.
trim
(
$
(
this
).
val
()
)
==
''
)
{
empty
=
true
;
}
});
...
...
@@ -111,7 +111,7 @@
<label>
Confirm Password *
</label>
<oneit:input
type=
"password"
name=
"<%= key + 2 %>"
class=
"form-control password-field"
/>
</div>
<!-- form-group -->
<div
class=
"col-sm-12"
style=
"text-align: right"
>
<div
class=
"col-sm-12"
>
<oneit:button
value=
"Set New Password"
name=
"resetPassword"
cssClass=
"box-btn reset-btn"
requestAttribs=
"<%= CollectionUtils.mapEntry("
nextPage
",
nextPage
).
toMap
()
%
>
"/>
</div>
...
...
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