1

How do i prevent the 'save password' dialog box in the browser using Angular 4. I tried to add hidden password field but not working.

<form [formGroup]="loginFrm" class="form-horizontal" autocomplete="off">

    <div class="form-group">
       <div class="col-md-12">
           <input type="text" class="form-control" name="username" placeholder="Username" formControlName="username" autocomplete="off"/>
       </div>
    </div> 

    <div class="form-group">
      <div class="col-md-12">
          <input type="password" autocomplete="off" tabindex="-1" style="display:none">
          <input type="password" class="form-control" placeholder="Password" name="password" formControlName="password" autocomplete="off" required/>
      </div>
    </div> 
</form>

1 Answer 1

0

I dont't think that is possible as it is a browser feature not website feature. You can turn off the browser password manager using this link https://support.1password.com/disable-browser-password-manager/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.