Author: thomas.heute(a)jboss.com
Date: 2008-05-29 04:15:24 -0400 (Thu, 29 May 2008)
New Revision: 10832
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/auth/IdentityLoginModule.java
Log:
- Adding userStatus to the request for i18n purpose
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/auth/IdentityLoginModule.java
===================================================================
---
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/auth/IdentityLoginModule.java 2008-05-29
07:46:30 UTC (rev 10831)
+++
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/auth/IdentityLoginModule.java 2008-05-29
08:15:24 UTC (rev 10832)
@@ -183,6 +183,9 @@
{
UserStatus userStatus = getUserStatus(inputPassword);
+
+ // Set the user Status in the request so that the login page can show an
error message accordingly
+ request.setAttribute("org.jboss.portal.userStatus",
userStatus);
if (userStatus == UserStatus.DISABLE)
{
@@ -207,8 +210,7 @@
{
log.error("Unexpected error while logging in");
return false;
- }
- }
+ } }
catch (Exception e)
{
log.error("Error when validating password", e);