[ 
https://issues.apache.org/jira/browse/JSPWIKI-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150086#comment-18150086
 ] 

Arturo Bernal commented on JSPWIKI-1387:
----------------------------------------

PR: https://github.com/apache/jspwiki/pull/658

A locked account logged in with the right password was told "Not a valid 
login", because the AccountLockedException of the login module was dropped. Now 
the owner is told that the account is locked. Someone who does not know the 
password still gets "Not a valid login", so the page does not reveal that an 
account exists or is locked.

Tested: a new unit test fails on master and passes with the change, the related 
authentication tests pass, and on a running wiki (Tomcat 10.1) a locked user 
with the right password sees the new message, a locked user with a wrong 
password and an unknown user see the old one, and a normal user logs in. Other 
languages fall back to the English text; the other login modules were not 
tested.

> When attempting to login to a locked user account, the error message is 
> "invalid login". this should be clearer
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-1387
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1387
>             Project: JSPWiki
>          Issue Type: Improvement
>            Reporter: Alex O'Ree
>            Priority: Major
>              Labels: pull-request-available
>
> maybe. your account is locked. try again later



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to