diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-06 13:54:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 09:26:29 +0100 |
commit | 328c78bc4a570a9aceaaa1a2124bacd4a0e8d295 (patch) | |
tree | 7f07a427828fb5540dfe7e6bed372e846d587b86 /client/src/app/+admin/users/user-edit/user-password.component.html | |
parent | c7ca4c8be781753f86d806015b182f1ee5443fcf (diff) | |
download | PeerTube-328c78bc4a570a9aceaaa1a2124bacd4a0e8d295.tar.gz PeerTube-328c78bc4a570a9aceaaa1a2124bacd4a0e8d295.tar.zst PeerTube-328c78bc4a570a9aceaaa1a2124bacd4a0e8d295.zip |
allow administration to change/reset a user's password
Diffstat (limited to 'client/src/app/+admin/users/user-edit/user-password.component.html')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-password.component.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-password.component.html b/client/src/app/+admin/users/user-edit/user-password.component.html new file mode 100644 index 000000000..ee7d8dff5 --- /dev/null +++ b/client/src/app/+admin/users/user-edit/user-password.component.html | |||
@@ -0,0 +1,25 @@ | |||
1 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | ||
2 | <div class="form-group"> | ||
3 | |||
4 | <div class="input-group mb-3"> | ||
5 | <div class="input-group-prepend"> | ||
6 | <div class="input-group-text"> | ||
7 | <input type="checkbox" aria-label="Show password" (change)="togglePasswordVisibility()"> | ||
8 | </div> | ||
9 | </div> | ||
10 | <input id="passwordField" #passwordField | ||
11 | [attr.type]="showPassword ? 'text' : 'password'" id="password" | ||
12 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" | ||
13 | > | ||
14 | <div class="input-group-append"> | ||
15 | <button class="btn btn-sm btn-outline-secondary" (click)="generatePassword() " | ||
16 | type="button">Generate</button> | ||
17 | </div> | ||
18 | </div> | ||
19 | <div *ngIf="formErrors.password" class="form-error"> | ||
20 | {{ formErrors.password }} | ||
21 | </div> | ||
22 | </div> | ||
23 | |||
24 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> | ||
25 | </form> \ No newline at end of file | ||