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
0cb77fda
Commit
0cb77fda
authored
Oct 13, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
password popup tip. verify identity changes
parent
d5e7a1ea
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
43 deletions
+47
-43
VerifyIdentityFP.java
cmsWebApp/src/performa/form/VerifyIdentityFP.java
+12
-12
common.css
cmsWebApp/webroot/css/common.css
+3
-3
verify_company.jsp
cmsWebApp/webroot/extensions/adminportal/verify_company.jsp
+1
-1
verify_identity.jsp
...pp/webroot/extensions/applicantportal/verify_identity.jsp
+20
-23
password_strength_lightweight.js
cmsWebApp/webroot/scripts/password_strength_lightweight.js
+11
-4
No files found.
cmsWebApp/src/performa/form/VerifyIdentityFP.java
View file @
0cb77fda
...
...
@@ -18,7 +18,7 @@ import performa.orm.*;
import
performa.utils.Utils
;
public
class
VerifyIdentityFP
extends
ORMProcessFormProcessor
public
class
VerifyIdentityFP
extends
SaveFP
{
private
static
LoggingArea
LOG
=
LoggingArea
.
createLoggingArea
(
"VerifyIdentity"
);
protected
ConfigurableArticleTemplateEmailer
emailer
;
...
...
@@ -41,13 +41,13 @@ public class VerifyIdentityFP extends ORMProcessFormProcessor
BusinessObjectParser
.
assertFieldCondition
(
secUser
.
getLastName
()
!=
null
,
secUser
,
SecUser
.
FIELD_LastName
,
"mandatory"
,
exceptions
,
true
,
request
);
if
(
isVerify
)
{
BusinessObjectParser
.
assertFieldCondition
(
job
.
getPassword
()!=
null
,
job
,
Job
.
FIELD_Password
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
job
.
getConfirmPassword
()!=
null
,
job
,
Job
.
FIELD_ConfirmPassword
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
CollectionUtils
.
equals
(
job
.
getPassword
(),
job
.
getConfirmPassword
()),
job
,
Job
.
FIELD_ConfirmPassword
,
"passwordNotMatch"
,
exceptions
,
true
,
request
);
}
//
if(isVerify)
//
{
//
BusinessObjectParser.assertFieldCondition(job.getPassword()!= null, job, Job.FIELD_Password, "mandatory", exceptions, true, request);
//
BusinessObjectParser.assertFieldCondition(job.getConfirmPassword()!= null, job, Job.FIELD_ConfirmPassword, "mandatory", exceptions, true, request);
//
BusinessObjectParser.assertFieldCondition(CollectionUtils.equals(job.getPassword(), job.getConfirmPassword()), job, Job.FIELD_ConfirmPassword, "passwordNotMatch", exceptions, true, request);
//
//
}
return
super
.
validate
(
submission
,
exceptions
);
}
...
...
@@ -68,9 +68,9 @@ public class VerifyIdentityFP extends ORMProcessFormProcessor
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Verifing User"
,
job
,
secUser
);
if
(
CollectionUtils
.
equals
(
job
.
getPassword
(),
job
.
getConfirmPassword
()))
{
secUser
.
setAttribute
(
"md5:"
+
SecUser
.
FIELD_Password
,
job
.
getPassword
());
//
if(CollectionUtils.equals(job.getPassword(), job.getConfirmPassword()))
//
{
//
secUser.setAttribute("md5:" + SecUser.FIELD_Password, job.getPassword());
candidate
.
setIsAccountVerified
(
Boolean
.
TRUE
);
sendMail
(
candidate
,
request
);
...
...
@@ -83,7 +83,7 @@ public class VerifyIdentityFP extends ORMProcessFormProcessor
// request.setAttribute("nextPage", nextPage + "&JobID=" + job.getObjectID());
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
"Password resetted"
,
job
,
secUser
);
}
//
}
}
process
.
completeAndRestart
();
...
...
cmsWebApp/webroot/css/common.css
View file @
0cb77fda
...
...
@@ -5694,7 +5694,7 @@ input{
/* Styles for verification */
.pswd_info
{
position
:
absolute
;
width
:
2
3
0px
;
width
:
2
8
0px
;
padding
:
0
;
/* background:#fefefe; */
font-size
:
20px
;
...
...
@@ -5703,8 +5703,8 @@ input{
border:1px solid #ddd;*/
display
:
none
;
z-index
:
1000
;
top
:
-2
0
px
;
right
:
-2
5
5px
;
top
:
-2
5
px
;
right
:
-2
9
5px
;
/* background-color: rgb(238,238,238);*/
/*box-shadow: 5px 5px 5px #888888;*/
}
...
...
cmsWebApp/webroot/extensions/adminportal/verify_company.jsp
View file @
0cb77fda
...
...
@@ -99,7 +99,7 @@
$('.verify-btn').attr('disabled', 'disabled');
} else {
$('.verify-btn').removeAttr('disabled');
clearInterval(interval);
//
clearInterval(interval);
}
}
</script>
...
...
cmsWebApp/webroot/extensions/applicantportal/verify_identity.jsp
View file @
0cb77fda
...
...
@@ -60,6 +60,20 @@
Debug.assertion(job != null && !toRedirect, "Invalid job in applicant portal");
Debug.assertion(candidate != null, "Invalid candidate in applicant portal");
%>
<oneit:script>
<oneit:script src="/scripts/password_strength_lightweight.js"/>
</oneit:script>
<style>
button[disabled] {
opacity: 0.6;
background-color: #0582ba;
}
</style>
<oneit:form name="signIn" method="post" enctype="multipart/form-data">
<%
String passkey = Utils.getPwdKeyOfSecUser(request, secUser, true);
%>
<script type="text/javascript">
$(document.body).addClass('bg-color');
...
...
@@ -67,6 +81,10 @@
validate();
$('input').on('change keyup', function() { validate() });
interval = setInterval(function() { validate(); }, 500);
$('#myPassword').strength_meter({
"inputName" : "<%= passkey %>"
});
});
function validate() {
...
...
@@ -88,16 +106,6 @@
}
}
</script>
<style>
button[disabled] {
opacity: 0.6;
background-color: #0582ba;
}
</style>
<oneit:form name="signIn" method="post" enctype="multipart/form-data">
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="main-verify-identity">
...
...
@@ -138,23 +146,12 @@
if(isVerify)
{
%>
<div class="form-group text-left">
<div class="form-group text-left"
id="myPassword"
>
<label>Password</label>
<oneit:ormInput obj="<%= job %>" type="password" attributeName="Password" cssClass="form-control second-style reset-pw" required="true"/>
</div>
<div class="form-group text-left">
<label>Confirm password</label>
<oneit:ormInput obj="<%= job %>" type="password" attributeName="ConfirmPassword" cssClass="form-control second-style reset-pw " required="true"/>
</div>
<div class="form-group text-left">
<p>
Your password must:
<ul>
<li>* begin with a letter of the alphabet</li>
<li>* include at least one number</li>
<li>* not include any spaces or special characters.</li>
</ul>
</p>
<oneit:input type="password" name="<%= passkey + 2 %>" class="form-control second-style reset-pw"/>
</div>
<%
}
...
...
cmsWebApp/webroot/scripts/password_strength_lightweight.js
View file @
0cb77fda
...
...
@@ -11,11 +11,12 @@ Dependencies:
var
upperCase
=
new
RegExp
(
'[A-Z]'
);
var
lowerCase
=
new
RegExp
(
'[a-z]'
);
var
numbers
=
new
RegExp
(
'[0-9]'
);
var
regx
=
/^
[
A-Za-z0-9 _.-
]
+$/
;
var
pluginName
=
'strength_meter'
,
defaults
=
{
strengthWrapperClass
:
'strength_wrapper'
,
inputClass
:
'form-control'
,
inputClass
:
'form-control
second-style reset-pw
'
,
strengthMeterClass
:
'strength_meter'
,
toggleButtonClass
:
'button_strength'
,
inputName
:
'password'
...
...
@@ -46,8 +47,10 @@ Dependencies:
<div class="info_box"><h4>Password must include:</h4>
\
<ul>
\
<li data-criterion="length" class="valid">8-20 <strong>Characters</strong></li>
\
<li data-criterion="capital" class="valid">At least <strong>one capital letter</strong></li>
\
<li data-criterion="lower" class="valid">At least <strong>one lower case letter</strong></li>
\
<li data-criterion="number" class="valid">At least <strong>one number</strong></li>
\
<li data-criterion="letter" class="valid">No
spaces
</li>
\
<li data-criterion="letter" class="valid">No
<strong>spaces</strong> and <strong>special characters</strong>
</li>
\
</ul>
\
</div></div>'
);
...
...
@@ -102,16 +105,20 @@ Dependencies:
var
password
=
$s
.
val
();
var
characters
=
(
password
.
length
>=
8
);
var
capitalletters
=
password
.
match
(
upperCase
)
?
1
:
0
;
var
loweletters
=
password
.
match
(
lowerCase
)
?
1
:
0
;
var
number
=
password
.
match
(
numbers
)
?
1
:
0
;
var
containWhiteSpace
=
password
.
indexOf
(
' '
)
>=
0
?
1
:
0
;
var
validText
=
regx
.
test
(
password
)
?
1
:
0
;
var
total
=
characters
+
loweletters
+
number
;
var
total
=
characters
+
capitalletters
+
loweletters
+
number
;
that
.
_update_indicator
(
total
);
that
.
_update_info
(
'length'
,
password
.
length
>=
8
&&
password
.
length
<=
20
);
that
.
_update_info
(
'capital'
,
capitalletters
);
that
.
_update_info
(
'lower'
,
loweletters
);
that
.
_update_info
(
'number'
,
number
);
that
.
_update_info
(
'letter'
,
!
containWhiteSpace
);
that
.
_update_info
(
'letter'
,
!
containWhiteSpace
&&
validText
);
}).
focus
(
function
()
{
that
.
content
.
$pswdInfo
.
show
();
}).
blur
(
function
()
{
...
...
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