aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-05 18:04:08 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-05 18:04:08 +0200
commit629d8d6f70cf83b55011dff53bfe1c4a95ac3433 (patch)
tree9d5a145609d9c693ddacfbc42ae75ca3c841aef0 /client/src/app/account/account.component.html
parent99a64bfed25e45547df3045cf249bc895e6f220b (diff)
downloadPeerTube-629d8d6f70cf83b55011dff53bfe1c4a95ac3433.tar.gz
PeerTube-629d8d6f70cf83b55011dff53bfe1c4a95ac3433.tar.zst
PeerTube-629d8d6f70cf83b55011dff53bfe1c4a95ac3433.zip
Client: implement password change
Diffstat (limited to 'client/src/app/account/account.component.html')
-rw-r--r--client/src/app/account/account.component.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/client/src/app/account/account.component.html b/client/src/app/account/account.component.html
new file mode 100644
index 000000000..ad8f690bd
--- /dev/null
+++ b/client/src/app/account/account.component.html
@@ -0,0 +1,27 @@
1<h3>Account</h3>
2
3<div *ngIf="information" class="alert alert-success">{{ information }}</div>
4<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
5
6<form role="form" (ngSubmit)="changePassword(newPassword.value, newConfirmedPassword.value)" [ngFormModel]="changePasswordForm">
7 <div class="form-group">
8 <label for="new-password">New password</label>
9 <input
10 type="password" class="form-control" name="new-password" id="new-password"
11 ngControl="newPassword" #newPassword="ngForm"
12 >
13 <div [hidden]="newPassword.valid || newPassword.pristine" class="alert alert-warning">
14 The password should have more than 5 characters
15 </div>
16 </div>
17
18 <div class="form-group">
19 <label for="name">Confirm new password</label>
20 <input
21 type="password" class="form-control" name="new-confirmed-password" id="new-confirmed-password"
22 ngControl="newConfirmedPassword" #newConfirmedPassword="ngForm"
23 >
24 </div>
25
26 <input type="submit" value="Change password" class="btn btn-default" [disabled]="!changePasswordForm.valid">
27</form>