Skip to content

Commit

Permalink
Frontend: Allow pasting password on login/signup forms(Cloud-CV#3582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram81 authored Aug 23, 2021
1 parent f06dd45 commit 1b18817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/web/auth/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
<!-- password -->
<div class="input-field align-left">
<input type="{{canShowPassword ? 'text' : 'password'}}" id="password" onpaste="return false;" class="dark-autofill" name="password" ng-model="auth.getUser.password" autocomplete="new-password" ng-minlength="8" required>
<input type="{{canShowPassword ? 'text' : 'password'}}" id="password" class="dark-autofill" name="password" ng-model="auth.getUser.password" autocomplete="new-password" ng-minlength="8" required>
<span class="form-icon form-icon-dark" ng-click="auth.togglePasswordVisibility()">
<i ng-if="!canShowPassword" class="fa fa-eye pointer"></i>
<i ng-if="canShowPassword" class="fa fa-eye-slash pointer"></i>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/web/auth/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
<!-- password -->
<div class="input-field align-left">
<input type="{{canShowPassword ? 'text' : 'password'}}" id="password" onpaste="return false;" class="dark-autofill" name="password" ng-model="auth.regUser.password" ng-minlength="8" ng-change="auth.checkStrength(auth.regUser.password)" required>
<input type="{{canShowPassword ? 'text' : 'password'}}" id="password" class="dark-autofill" name="password" ng-model="auth.regUser.password" ng-minlength="8" ng-change="auth.checkStrength(auth.regUser.password)" required>
<span class="form-icon form-icon-dark" ng-click="auth.togglePasswordVisibility()">
<i ng-if="!canShowPassword" class="fa fa-eye pointer"></i>
<i ng-if="canShowPassword" class="fa fa-eye-slash pointer"></i>
Expand All @@ -46,7 +46,7 @@
</div>
<!-- confirm password -->
<div class="input-field align-left">
<input type="{{canShowConfirmPassword ? 'text' : 'password'}}" id="confirm_password" onpaste="return false;" class="dark-autofill" name="confirm_password" ng-model="auth.regUser.confirm_password" ng-minlength="8" compare-to="auth.regUser.password" required>
<input type="{{canShowConfirmPassword ? 'text' : 'password'}}" id="confirm_password" class="dark-autofill" name="confirm_password" ng-model="auth.regUser.confirm_password" ng-minlength="8" compare-to="auth.regUser.password" required>
<span class="form-icon form-icon-dark" ng-click="auth.toggleConfirmPasswordVisibility()">
<i ng-if="!canShowConfirmPassword" class="fa fa-eye pointer"></i>
<i ng-if="canShowConfirmPassword" class="fa fa-eye-slash pointer"></i>
Expand Down

0 comments on commit 1b18817

Please sign in to comment.