Commit f91933aa authored by Siedschlag, Lennart's avatar Siedschlag, Lennart
Browse files

password wiederholung und validirung

parent 63b74dc3
Pipeline #6337 passed with stage
in 5 minutes and 14 seconds
......@@ -21,6 +21,7 @@ class RegisterComponent implements OnInit, OnActivate {
final Router _router;
final UserService _registerService;
User user = User.zero();
String passwordWh = "";
Future<void> register() async {
......@@ -45,4 +46,8 @@ class RegisterComponent implements OnInit, OnActivate {
_router.navigate('/calendar');
}
}
}
\ No newline at end of file
<div *ngIf="user != null">
<h3>Register</h3>
<h3>Register</h3>
<form #registerForm="ngForm">
<div class="form-group">
<label for="nickname">Nickname&nbsp;*</label>
......@@ -39,7 +39,8 @@
</div>
<div class="form-group">
<label for="mobileNo">Mobile Number</label>
<input type="text" class="form-control" id="mobileNo" placeholder="Mobile Number" [(ngModel)]="user.mobileNo">
<input type="text" class="form-control" id="mobileNo" placeholder="Mobile Number"
[(ngModel)]="user.mobileNo">
</div>
<div class="form-group">
<label for="password">Password&nbsp;*</label>
......@@ -57,7 +58,17 @@
</div>
<button type="button" [disabled]="!registerForm.form.valid" class="btn btn-success" (click)="register()">Register</button>
<div class="form-group">
<label for="passwordWh">Password wiederholen&nbsp;*</label>
<input type="password" class="form-control" id="passwordWh" required placeholder="Password wiederholen"
pattern="{{user.password}}"
[(ngModel)]="passwordWh"
ngControl="passwordWh">
</div>
<button type="button" [disabled]="!registerForm.form.valid" class="btn btn-success" (click)="register()">
Register
</button>
<button type="button" class="btn btn-danger" (click)="cancel()">Cancel</button>
</form>
</div>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment