Removed warnings

dictionnaire
HMatheo 2 years ago
parent 2e70e240e6
commit 2a1579bde8

@ -117,6 +117,7 @@
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>

@ -98,4 +98,22 @@ public partial class signUpPage : ContentPage
return hasUppercase && hasLowercase && hasDigit;
}
// Verification de la force du mot de passe
void OnPasswordStrengthChanged(object sender, TextChangedEventArgs e)
{
string password = e.NewTextValue;
if (IsPasswordStrong(password))
{
passwordStrengthLabel.Text = "Fort";
passwordStrengthLabel.TextColor = Color.Green;
}
else
{
passwordStrengthLabel.Text = "Faible";
passwordStrengthLabel.TextColor = Color.Red;
}
}
}
Loading…
Cancel
Save