mirror of
https://github.com/bitwarden/android.git
synced 2024-12-29 20:38:31 +03:00
relax password requirements during registration
This commit is contained in:
parent
fe8240c47a
commit
bb37372be0
1 changed files with 2 additions and 6 deletions
|
@ -169,14 +169,10 @@ namespace Bit.App.Pages
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var passwordCharArray = PasswordCell.Entry.Text.ToCharArray();
|
if(PasswordCell.Entry.Text.Length < 8)
|
||||||
if(PasswordCell.Entry.Text.Length < 8 || !passwordCharArray.Any(char.IsLetter)
|
|
||||||
|| !(passwordCharArray.Any(char.IsDigit) || passwordCharArray.Any(c => !char.IsLetterOrDigit(c))))
|
|
||||||
{
|
{
|
||||||
await DisplayAlert(AppResources.AnErrorHasOccurred,
|
await DisplayAlert(AppResources.AnErrorHasOccurred,
|
||||||
"Master password must be at least 8 characters long and contain at least 1 letter and 1 number "
|
"Master password must be at least 8 characters long.", AppResources.Ok);
|
||||||
+ "or special character.",
|
|
||||||
AppResources.Ok);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue