diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-10 15:39:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-10 15:39:27 +0200 |
commit | 8347f8a429ceb98b068fac577a0321bd67ae1b07 (patch) | |
tree | d63ded024832b8f3c490c97cd472f522d4b351d1 /client/src/app/+admin/overview/users/user-edit/user-edit.ts | |
parent | 5cc2f0ea0a0af82333d673db1ad6461ed5cb4233 (diff) | |
download | PeerTube-8347f8a429ceb98b068fac577a0321bd67ae1b07.tar.gz PeerTube-8347f8a429ceb98b068fac577a0321bd67ae1b07.tar.zst PeerTube-8347f8a429ceb98b068fac577a0321bd67ae1b07.zip |
Add auto complete to user edit password
Diffstat (limited to 'client/src/app/+admin/overview/users/user-edit/user-edit.ts')
-rw-r--r-- | client/src/app/+admin/overview/users/user-edit/user-edit.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.ts b/client/src/app/+admin/overview/users/user-edit/user-edit.ts index 21e9629ab..5428f6ce9 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.ts | |||
@@ -62,7 +62,8 @@ export abstract class UserEdit extends FormReactive implements OnInit { | |||
62 | 62 | ||
63 | displayDangerZone () { | 63 | displayDangerZone () { |
64 | if (this.isCreation()) return false | 64 | if (this.isCreation()) return false |
65 | if (this.user?.pluginAuth) return false | 65 | if (!this.user) return false |
66 | if (this.user.pluginAuth) return false | ||
66 | if (this.auth.getUser().id === this.user.id) return false | 67 | if (this.auth.getUser().id === this.user.id) return false |
67 | 68 | ||
68 | return true | 69 | return true |