Skip to content
Snippets Groups Projects
Commit 2e6d87fe authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13671 TIME 0:15 add firstname lastname user in installer

parent c9b9284e
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,14 @@
<mat-label>{{lang.id}}</mat-label>
<input matInput formControlName="login">
</mat-form-field>
<mat-form-field appearance="outline">
<mat-label>{{lang.firstname}}</mat-label>
<input matInput formControlName="firstname">
</mat-form-field>
<mat-form-field appearance="outline">
<mat-label>{{lang.lastname}}</mat-label>
<input matInput formControlName="lastname">
</mat-form-field>
<mat-form-field appearance="outline">
<mat-label>{{lang.password}}</mat-label>
<input [type]="hide ? 'password' : 'text'" matInput formControlName="password">
......
......@@ -30,6 +30,8 @@ export class UseradminComponent implements OnInit {
this.stepFormGroup = this._formBuilder.group({
login: ['superadmin', valLogin],
firstname: ['Admin', Validators.required],
lastname: ['SUPER', Validators.required],
password: ['', Validators.required],
passwordConfirm: ['', Validators.required],
email: ['dev@maarch.org', valEmail],
......@@ -82,6 +84,8 @@ export class UseradminComponent implements OnInit {
idStep : 'userAdmin',
body : {
login: this.stepFormGroup.controls['login'].value,
firstname: this.stepFormGroup.controls['firstname'].value,
lastname: this.stepFormGroup.controls['lastname'].value,
password: this.stepFormGroup.controls['password'].value,
email: this.stepFormGroup.controls['email'].value,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment