From bb37372be076642334bf9bdb7af37d11976a79d6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 10 Oct 2016 22:04:00 -0400 Subject: [PATCH] relax password requirements during registration --- src/App/Pages/RegisterPage.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/App/Pages/RegisterPage.cs b/src/App/Pages/RegisterPage.cs index c49c521aa..fda62251d 100644 --- a/src/App/Pages/RegisterPage.cs +++ b/src/App/Pages/RegisterPage.cs @@ -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; }