mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-22 14:22:48 +01:00
Password validation
Password validation
This commit is contained in:
parent
8f2db2ff32
commit
aa4c72a5ca
3 changed files with 3 additions and 3 deletions
|
@ -12,5 +12,5 @@
|
|||
<link rel="stylesheet" href="styles.90ee7bcb73e8367b2a29.css"></head>
|
||||
<body>
|
||||
<rtl-app></rtl-app>
|
||||
<script src="runtime.bd15680a9b84bab2ef08.js" defer></script><script src="polyfills-es5.37b2eeccc22c1df73ce7.js" nomodule defer></script><script src="polyfills.f1c3d2a0bcdfc4e93ca8.js" defer></script><script src="main.b6178808094e07f60dfd.js" defer></script></body>
|
||||
<script src="runtime.bd15680a9b84bab2ef08.js" defer></script><script src="polyfills-es5.37b2eeccc22c1df73ce7.js" nomodule defer></script><script src="polyfills.f1c3d2a0bcdfc4e93ca8.js" defer></script><script src="main.85c2396b9d8bbb16a274.js" defer></script></body>
|
||||
</html>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@ export class AuthSettingsComponent implements OnInit {
|
|||
ngOnInit() {}
|
||||
|
||||
onResetPassword() {
|
||||
if(!this.oldPassword || !this.newPassword || !this.confirmPassword || this.oldPassword === this.newPassword) { return true; }
|
||||
if(!this.oldPassword || !this.newPassword || !this.confirmPassword || this.oldPassword === this.newPassword || this.newPassword !== this.confirmPassword) { return true; }
|
||||
this.store.dispatch(new RTLActions.ResetPassword({oldPassword: sha256(this.oldPassword), newPassword: sha256(this.newPassword)}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue