Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
f57f8005
Commit
f57f8005
authored
Oct 21, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Oct 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #294 from stratisproject/ui
Fix password validation
parents
1c6a03c4
db5256ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
password-validation.directive.ts
...rc/app/shared/directives/password-validation.directive.ts
+3
-6
No files found.
Breeze.UI/src/app/shared/directives/password-validation.directive.ts
View file @
f57f8005
...
...
@@ -8,17 +8,14 @@ export class PasswordValidationDirective {
constructor
()
{
}
static
MatchPassword
(
AC
:
AbstractControl
)
{
AC
.
get
(
'walletPassword'
).
valueChanges
.
subscribe
(()
=>
{
AC
.
get
(
'walletPasswordConfirmation'
).
updateValueAndValidity
();
});
let
password
=
AC
.
get
(
'walletPassword'
).
value
;
let
confirmPassword
=
AC
.
get
(
'walletPasswordConfirmation'
).
value
;
if
(
password
!=
confirmP
assword
)
{
if
(
confirmPassword
!==
p
assword
)
{
AC
.
get
(
'walletPasswordConfirmation'
).
setErrors
({
walletPasswordConfirmation
:
true
});
}
else
{
return
null
AC
.
get
(
'walletPasswordConfirmation'
).
setErrors
(
null
);
return
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