mirror of https://github.com/Chocobozzz/PeerTube
Add auto complete to user edit password
parent
5cc2f0ea0a
commit
8347f8a429
|
@ -62,7 +62,8 @@ export abstract class UserEdit extends FormReactive implements OnInit {
|
|||
|
||||
displayDangerZone () {
|
||||
if (this.isCreation()) return false
|
||||
if (this.user?.pluginAuth) return false
|
||||
if (!this.user) return false
|
||||
if (this.user.pluginAuth) return false
|
||||
if (this.auth.getUser().id === this.user.id) return false
|
||||
|
||||
return true
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
|
||||
|
||||
<div class="input-group">
|
||||
<input id="password" [attr.type]="showPassword ? 'text' : 'password'" class="form-control"
|
||||
<input id="password"
|
||||
[attr.type]="showPassword ? 'text' : 'password'" class="form-control"
|
||||
formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
|
||||
autocomplete="new-password"
|
||||
>
|
||||
<button class="btn btn-sm btn-outline-secondary" (click)="togglePasswordVisibility()" type="button">
|
||||
<ng-container *ngIf="!showPassword" i18n>Show</ng-container>
|
||||
|
|
Loading…
Reference in New Issue