mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
include email + pw for frontend user editing
This commit is contained in:
parent
1663450c1f
commit
f1eecd146d
@ -8,6 +8,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<app-input-text i18n-title title="Username" formControlName="username" [error]="error?.username"></app-input-text>
|
<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="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>
|
<app-input-text i18n-title title="Last name" formControlName="last_name" [error]="error?.first_name"></app-input-text>
|
||||||
|
|
||||||
|
@ -48,6 +48,8 @@ export class UserEditDialogComponent
|
|||||||
getForm(): FormGroup {
|
getForm(): FormGroup {
|
||||||
return new FormGroup({
|
return new FormGroup({
|
||||||
username: new FormControl(''),
|
username: new FormControl(''),
|
||||||
|
email: new FormControl(''),
|
||||||
|
password: new FormControl(null),
|
||||||
first_name: new FormControl(''),
|
first_name: new FormControl(''),
|
||||||
last_name: new FormControl(''),
|
last_name: new FormControl(''),
|
||||||
is_active: new FormControl(true),
|
is_active: new FormControl(true),
|
||||||
|
@ -31,6 +31,7 @@ class UserSerializer(serializers.ModelSerializer):
|
|||||||
fields = (
|
fields = (
|
||||||
"id",
|
"id",
|
||||||
"username",
|
"username",
|
||||||
|
"email",
|
||||||
"password",
|
"password",
|
||||||
"first_name",
|
"first_name",
|
||||||
"last_name",
|
"last_name",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user