|
|
|
@ -20,6 +20,10 @@ namespace VeraxShield.composants.authentification
|
|
|
|
|
|
|
|
|
|
public String Erreur {get; set; }
|
|
|
|
|
|
|
|
|
|
private bool showPassword = false;
|
|
|
|
|
private string eyeIcon = "fas fa-eye";
|
|
|
|
|
private string eyeSlashIcon = "fas fa-eye-slash";
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
|
{
|
|
|
|
|
this.Requete = new RequeteConnexion();
|
|
|
|
@ -40,5 +44,20 @@ namespace VeraxShield.composants.authentification
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void TogglePasswordVisibility()
|
|
|
|
|
{
|
|
|
|
|
showPassword = !showPassword;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string GetPasswordInputType()
|
|
|
|
|
{
|
|
|
|
|
return showPassword ? "text" : "password";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string GetEyeIcon()
|
|
|
|
|
{
|
|
|
|
|
return showPassword ? eyeSlashIcon : eyeIcon;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|