Fix check if password is empty on register page

master
Max 5 years ago
parent 3a39e0e3b3
commit 2bf173da07

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

Loading…
Cancel
Save