Error verbosity improved on login

main
Inga 🏳‍🌈 15 years ago
parent c9ebae60b6
commit 11be75568d
  1. 2
      Common/dataobjects/Account.cs

@ -177,7 +177,7 @@ namespace FLocal.Common.dataobjects {
public static Account tryAuthorize(string name, string password) { public static Account tryAuthorize(string name, string password) {
Account account = LoadByName(name); 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; return account;
} }

Loading…
Cancel
Save