loginForm macro problem showing error messages
When someone is using the loginForm macro to login in the front-end and makes a mistake writing the user or password, the error message is not being displayed properly.
The problem is caused by a difference between the Language.properties and the CMSUsersWebAPI.doLoginMacro keys for the error messages. For that reason ,the $glossary.get(<errorkeyname>) can't finding the proper value.
For example in the Language.properties file we have: dotcmsmacrologinloggedOut=Logged Out dotcmsmacrologinfailed=Login Failed
but in the webapi CMSUsersWebAPI.doLoginMacro method we use: ctx.put("*loginMessage", "dotcms.macro.login.failed"); ctx.put("*loginMessage", "dotcms.macro.login.loggedOut");
To fix it we need to either change the "" to "." in the language.properties for those entries or update CMSUsersWebAPI.doLoginMacro changing the "." for "".
The error was found testing in dotcms tag 2.5
merged to master and master-2.5
Passed- new test case added: http://qa.dotcms.com/index.php?/cases/view/673