From 5cbcdd914e7dc77a48eebb5bd701d40f5e48bb39 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sun, 4 Jul 2010 09:00:53 +0000 Subject: [PATCH] Password minimum length requirement implemented --- Common/dataobjects/Account.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/dataobjects/Account.cs b/Common/dataobjects/Account.cs index f7aca96..625089a 100644 --- a/Common/dataobjects/Account.cs +++ b/Common/dataobjects/Account.cs @@ -133,6 +133,7 @@ namespace FLocal.Common.dataobjects { } public void updatePassword(string newPassword) { + if(newPassword.Length < 5) throw new FLocalException("Password is too short"); ChangeSetUtil.ApplyChanges(new AbstractChange[] { new UpdateChange( TableSpec.instance,