]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
include email + pw for frontend user editing
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Tue, 3 Jan 2023 16:29:36 +0000 (08:29 -0800)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Tue, 3 Jan 2023 16:29:36 +0000 (08:29 -0800)
src-ui/src/app/components/common/edit-dialog/user-edit-dialog/user-edit-dialog.component.html
src-ui/src/app/components/common/edit-dialog/user-edit-dialog/user-edit-dialog.component.ts
src/paperless/serialisers.py

index 35c6a73bae6a089ddea7734ce9af28d412b27131..ec9cceae9e66a4bf4b1cef2510f1a709b19c138b 100644 (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>
 
index 70dcd42afadb54615f4ab6db4ffbf8292edbdaf1..8adf6f324b809f6bf4491b7b5ddef7a856d1794a 100644 (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),
index a46d4897be38bc2110e50c094b09701f617dc4e9..63ddb773a66e04f46ea951cb75196b9e041a3908 100644 (file)
@@ -31,6 +31,7 @@ class UserSerializer(serializers.ModelSerializer):
         fields = (
             "id",
             "username",
+            "email",
             "password",
             "first_name",
             "last_name",