Author: amarkhel
Date: 2009-04-14 10:27:39 -0400 (Tue, 14 Apr 2009)
New Revision: 13569
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
Log:
Fix RF-6782
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java
===================================================================
---
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-04-14
14:27:34 UTC (rev 13568)
+++
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Authenticator.java 2009-04-14
14:27:39 UTC (rev 13569)
@@ -84,6 +84,7 @@
throw new RuntimeException(e);
}
}
+
public String login(){
if(identity.hasRole(Constants.ADMIN_ROLE)){
return null;
@@ -110,7 +111,7 @@
@End
public String register(User user){
if(checkPassword(user) || checkUserExist(user)){
- return null;
+ return "";
}
user.setPasswordHash(hash(user.getPassword()));
user.setPreDefined(false);
@@ -118,7 +119,7 @@
userAction.register(user);
}
catch(Exception e){
- return null;
+ return "";
}
return Constants.INDEX_OUTCOME;
}
@@ -130,6 +131,7 @@
public String goToRegister(){
identity.unAuthenticate();
+ Contexts.getSessionContext().set("user", null);
return Constants.REGISTER_OUTCOME;
}