From b5692d0fab4f324bea1e6f64956ce3345cb8f62a Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 8 Jul 2010 11:12:20 +0000 Subject: [PATCH] Verbosity improved on bad password --- 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 93fc049..57b4f6f 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 FLocalException("Wrong password (" + account.hashPassword(password) + ")"); + if(account.passwordHash != account.hashPassword(password)) throw new FLocalException("Wrong password (" + account.id + ":" + account.hashPassword(password) + ")"); return account; }