include email + pw for frontend user editing

This commit is contained in:
Michael Shamoon 2023-01-03 08:29:36 -08:00
parent 1663450c1f
commit f1eecd146d
3 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,8 @@
<div class="row">
<div class="col">
<app-input-text i18n-title title="Username" formControlName="username" [error]="error?.username"></app-input-text>
<app-input-text i18n-title title="Email" formControlName="email" [error]="error?.email"></app-input-text>
<app-input-password i18n-title title="Password" formControlName="password" [error]="error?.password"></app-input-password>
<app-input-text i18n-title title="First name" formControlName="first_name" [error]="error?.first_name"></app-input-text>
<app-input-text i18n-title title="Last name" formControlName="last_name" [error]="error?.first_name"></app-input-text>

View File

@ -48,6 +48,8 @@ export class UserEditDialogComponent
getForm(): FormGroup {
return new FormGroup({
username: new FormControl(''),
email: new FormControl(''),
password: new FormControl(null),
first_name: new FormControl(''),
last_name: new FormControl(''),
is_active: new FormControl(true),

View File

@ -31,6 +31,7 @@ class UserSerializer(serializers.ModelSerializer):
fields = (
"id",
"username",
"email",
"password",
"first_name",
"last_name",