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
c987131f
Commit
c987131f
authored
Nov 08, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S12516648 # Client - Incoming Issues (raised by Client) #Allow special characters in password
parent
b086b07c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
PerformaPasswordValidator.java
cmsWebApp/src/performa/utils/PerformaPasswordValidator.java
+1
-1
No files found.
cmsWebApp/src/performa/utils/PerformaPasswordValidator.java
View file @
c987131f
...
@@ -14,7 +14,7 @@ public class PerformaPasswordValidator extends AttributeValidator
...
@@ -14,7 +14,7 @@ public class PerformaPasswordValidator extends AttributeValidator
public
boolean
validate
(
Map
attribMetadata
,
BaseBusinessClass
obj
,
String
fieldName
,
Object
newValue
)
throws
Exception
public
boolean
validate
(
Map
attribMetadata
,
BaseBusinessClass
obj
,
String
fieldName
,
Object
newValue
)
throws
Exception
{
{
String
newPwd
=
(
String
)
newValue
;
String
newPwd
=
(
String
)
newValue
;
Pattern
pattern
=
Pattern
.
compile
(
"([a-zA-Z
.@_]+\\d+[a-zA-Z0-9.@_
]*)"
);
Pattern
pattern
=
Pattern
.
compile
(
"([a-zA-Z
0-9.@_!#$%&*
]*)"
);
Matcher
matcher
=
pattern
.
matcher
(
newPwd
);
Matcher
matcher
=
pattern
.
matcher
(
newPwd
);
BusinessObjectParser
.
assertFieldCondition
(
matcher
.
matches
(),
obj
,
SecUser
.
FIELD_Password
,
"PasswordPatternNotMatched"
);
BusinessObjectParser
.
assertFieldCondition
(
matcher
.
matches
(),
obj
,
SecUser
.
FIELD_Password
,
"PasswordPatternNotMatched"
);
...
...
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