Wrong password message improved

main
Inga 🏳‍🌈 15 years ago
parent 6f698d0741
commit 7df9f4848e
  1. 2
      IISMainHandler/handlers/request/SettingsHandler.cs

@ -30,7 +30,7 @@ namespace FLocal.IISHandler.handlers.request {
if((usersPerPage < 1) || (usersPerPage > 200)) throw new FLocalException("wrong number for usersPerPage"); if((usersPerPage < 1) || (usersPerPage > 200)) throw new FLocalException("wrong number for usersPerPage");
if((uploadsPerPage < 1) || (uploadsPerPage > 200)) throw new FLocalException("wrong number for uploadsPerPage"); if((uploadsPerPage < 1) || (uploadsPerPage > 200)) throw new FLocalException("wrong number for uploadsPerPage");
if(!context.account.checkPassword(currentPassword)) throw new FLocalException("wrong password"); if(!context.account.checkPassword(currentPassword)) throw new FLocalException("Wrong password. You should enter your current password in order to change settings.");
AccountSettings.Save(context.session.account, postsPerPage, threadsPerPage, usersPerPage, uploadsPerPage, skin); AccountSettings.Save(context.session.account, postsPerPage, threadsPerPage, usersPerPage, uploadsPerPage, skin);

Loading…
Cancel
Save