Fix check if password is empty on register page

master
Max 4 years ago
parent 3a39e0e3b3
commit 2bf173da07

@ -39,6 +39,11 @@ export class RegisterComponent implements OnInit {
} }
passwordSame(pwd: string, pwd2: string) { passwordSame(pwd: string, pwd2: string) {
if (!pwd) {
this.errorOccurred = true;
this.errorMessage = 'please enter a password';
return false;
}
if (pwd === pwd2) { if (pwd === pwd2) {
return true; return true;
} else { } else {

Loading…
Cancel
Save