1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

relax password requirements during registration

This commit is contained in:
Kyle Spearrin
2016-10-10 22:04:00 -04:00
parent fe8240c47a
commit bb37372be0

View File

@@ -169,14 +169,10 @@ namespace Bit.App.Pages
return;
}
var passwordCharArray = PasswordCell.Entry.Text.ToCharArray();
if(PasswordCell.Entry.Text.Length < 8 || !passwordCharArray.Any(char.IsLetter)
|| !(passwordCharArray.Any(char.IsDigit) || passwordCharArray.Any(c => !char.IsLetterOrDigit(c))))
if(PasswordCell.Entry.Text.Length < 8)
{
await DisplayAlert(AppResources.AnErrorHasOccurred,
"Master password must be at least 8 characters long and contain at least 1 letter and 1 number "
+ "or special character.",
AppResources.Ok);
"Master password must be at least 8 characters long.", AppResources.Ok);
return;
}