2
I have here the following situation:
I created an HTML form to change the user’s password in case he forgets it.
The problem is that when trying to enter the password the browser exposes the options of already saved passwords, however as this is not a login screen it is not interesting that this is displayed to the user.
The HTML code I’m using is as follows::
<form id="form" action="@Url.Action("ResetPassword", "Login")" method="post">
<div id="enter-options-box">
<p class="title-bold">@ViewBag.UserId - @ViewBag.Identifier</p>
</div>
<label class="form-input">
<i class="material-icons"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></i>
<input class="password-mask"
type="password"
autocomplete="off"
id="NewPassword"
maxlength="16"
name="NewPassword"
required
onchange="VerifyInput('NewPassword', 'newPassword-text'); this.setCustomValidity('');"
oninvalid="this.setCustomValidity('Por favor, preencha este campo.')"
onkeyup="CalculeStrength('NewPassword', 'strengt-bar', 'strengt-label')"
title=" " />
<span id="newPassword-text" class="label">Nova senha</span>
<span class="underline"></span>
</label>
<div class="box-bar">
<div class="progress slin-bar">
<div id="strengt-bar" class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<span id="strengt-label">Força da senha.</span>
</div>
<label class="form-input">
<i class="material-icons"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></i>
<input class="password-mask"
type="password"
autocomplete="off"
id="ConfirmPassword"
maxlength="16"
name="ConfirmPassword"
required
onchange="VerifyInput('ConfirmPassword', 'confirmPassword-text'); this.setCustomValidity('');"
oninvalid="this.setCustomValidity('Por favor, preencha este campo.')"
title=" " />
<span id="confirmPassword-text" class="label">Confirmar senha</span>
<span class="underline"></span>
</label>
<div class="submit-container clearfix">
<input id="submit" name="submit" role="button" type="submit" class="btn btn-irenic float-right" tabindex="0" value="SALVAR" onclick="ClickWait('form');" />
</div>
</form>
How can I make sure that this list of saved passwords is not displayed?
Why does the browser interpret this as a login screen?
This certainly would not solve, because then I would be throwing this responsibility to the user. The root of the problem is that the browser is understanding this form as if it were a Login form, but it is not.
– Diego Silva
What he’s doing is asked if he wants to use saved passwords for the Cpfs and Cnpjs that were stored in the browser, which were at some point used to log in.
– Sam
Which browser appears this?
– Sam
The browser is firefox.
– Diego Silva
If you can test this, and comment on the result: https://answall.com/a/10879/70
– Bacco