LILiK login and user managment web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
1.6 KiB

<md-dialog md-theme="default" ng-class="dialog.css" class="_md md-default-theme md-transition-in">
<md-dialog-content class="md-dialog-content">
<h2>Change {{ user.uid }}'s password</h2>
<form name="newPasswordForm" role="form" ng-submit="newPasswordForm.$valid && ok()" novalidate>
<md-input-container class="md-block">
<label for="newPassword">New Password</label>
<input type="password" name="newPassword" ng-model="password.new"
ng-minlength="6" required />
<div class="help-block"
ng-show="newPasswordForm.newPassword.$dirty && newPasswordForm.newPassword.$invalid">
Please enter a new password, it must be at least 6 characters long.
</div>
</md-input-container>
<md-input-container class="md-block">
<label for="newPasswordConfirm">Confirm New Password</label>
<input type="password" name="newPasswordConfirm"
ng-model="password.confirm" ng-minlength="6"
value-matches="password.new" required />
<div class="help-block"
ng-show="newPasswordForm.newPasswordConfirm.$dirty && newPasswordForm.newPasswordConfirm.$invalid">
Please enter the same password again to confirm.
</div>
</md-input-container>
<md-dialog-actions>
<md-button ng-click="closeDialog()" class="md-primary">Cancel</md-button>
<md-button class="md-raised md-primary md-ink-ripple" ng-disabled="newPasswordForm.$invalid" ng-click="save()">Save</md-button>
</md-dialog-actions>
</form>
</md-dialog-content>
</md-dialog>