From b367e07241edbc02c68ec78540329d833a49288a Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 20 Jan 2024 10:16:22 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20Visibilit=C3=A9=20mdp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VeraxShield/VeraxShield/VeraxShield.csproj | 6 +++--- .../authentification/FormulaireConnexion.razor | 17 ++++++++++++----- .../FormulaireConnexion.razor.cs | 8 ++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/VeraxShield/VeraxShield/VeraxShield.csproj b/VeraxShield/VeraxShield/VeraxShield.csproj index cc1d6a1..9b939c3 100644 --- a/VeraxShield/VeraxShield/VeraxShield.csproj +++ b/VeraxShield/VeraxShield/VeraxShield.csproj @@ -12,10 +12,10 @@ - + - - + + diff --git a/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor b/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor index 819e580..cb2782c 100644 --- a/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor +++ b/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor @@ -32,11 +32,18 @@ Mot de passe - - - - - +
+ + + + + +
+
diff --git a/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor.cs b/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor.cs index cc8805b..702b9bd 100644 --- a/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor.cs +++ b/VeraxShield/VeraxShield/composants/authentification/FormulaireConnexion.razor.cs @@ -19,6 +19,9 @@ namespace VeraxShield.composants.authentification private DonneurEtat DonneurEtat {get; set;} public String Erreur {get; set; } + + public bool showPassword = false; + protected override async Task OnInitializedAsync() { @@ -46,5 +49,10 @@ namespace VeraxShield.composants.authentification { this.NavigationManager.NavigateTo("/inscription"); } + + private void ToggleShowPassword() + { + showPassword = !showPassword; + } } } \ No newline at end of file