core icon indicating copy to clipboard operation
core copied to clipboard

loginForm macro problem showing error messages

Open oswaldogallango opened this issue 13 years ago • 2 comments

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

oswaldogallango avatar Sep 23 '13 21:09 oswaldogallango

merged to master and master-2.5

jtesser avatar Sep 26 '13 10:09 jtesser

Passed- new test case added: http://qa.dotcms.com/index.php?/cases/view/673

DeanGonzalez avatar Oct 15 '13 23:10 DeanGonzalez