From ce26fd73cc7fc1b87feef62bb0e6ea0bf5b8224d Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sun, 4 Jul 2010 19:58:45 +0000 Subject: [PATCH] Fixed password checking in Account.migrate --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- Common/dataobjects/Account.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index c021767..18133fa 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -558 \ No newline at end of file +564 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index 8975db9..f491e22 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -293 \ No newline at end of file +299 \ No newline at end of file diff --git a/Common/dataobjects/Account.cs b/Common/dataobjects/Account.cs index b5b49c3..39b5188 100644 --- a/Common/dataobjects/Account.cs +++ b/Common/dataobjects/Account.cs @@ -149,6 +149,7 @@ namespace FLocal.Common.dataobjects { } public void migrate(string newPassword) { + if(newPassword.Length < 5) throw new FLocalException("Password is too short"); ChangeSetUtil.ApplyChanges(new AbstractChange[] { new UpdateChange( TableSpec.instance,