From 11be75568d366f5140e0f4f26681f36ad6fd0b4e Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 5 Jul 2010 15:34:38 +0000 Subject: [PATCH] Error verbosity improved on login --- Common/dataobjects/Account.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/dataobjects/Account.cs b/Common/dataobjects/Account.cs index 39b5188..69962d4 100644 --- a/Common/dataobjects/Account.cs +++ b/Common/dataobjects/Account.cs @@ -177,7 +177,7 @@ namespace FLocal.Common.dataobjects { public static Account tryAuthorize(string name, string password) { Account account = LoadByName(name); - if(account.passwordHash != account.hashPassword(password)) throw new NotFoundInDBException(); + if(account.passwordHash != account.hashPassword(password)) throw new FLocalException("Wrong password"); return account; }