[seam-commits] Seam SVN: r8926 - in trunk/seam-gen: view and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sun Sep 7 19:56:46 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-09-07 19:56:46 -0400 (Sun, 07 Sep 2008)
New Revision: 8926

Modified:
   trunk/seam-gen/src/Authenticator.java
   trunk/seam-gen/view/login.xhtml
Log:
JBSEAM-3389

Modified: trunk/seam-gen/src/Authenticator.java
===================================================================
--- trunk/seam-gen/src/Authenticator.java	2008-09-05 18:23:47 UTC (rev 8925)
+++ trunk/seam-gen/src/Authenticator.java	2008-09-07 23:56:46 UTC (rev 8926)
@@ -4,6 +4,7 @@
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.annotations.Name;
 import org.jboss.seam.log.Log;
+import org.jboss.seam.security.Credentials;
 import org.jboss.seam.security.Identity;
 
 
@@ -13,10 +14,11 @@
     @Logger Log log;
 
     @In Identity identity;
+    @In Credentials credentials;
 
     public boolean authenticate()
     {
-        log.info("authenticating {0}", identity.getUsername());
+        log.info("authenticating {0}", credentials.getUsername());
         //write your authentication logic here,
         //return true if the authentication was
         //successful, false otherwise

Modified: trunk/seam-gen/view/login.xhtml
===================================================================
--- trunk/seam-gen/view/login.xhtml	2008-09-05 18:23:47 UTC (rev 8925)
+++ trunk/seam-gen/view/login.xhtml	2008-09-07 23:56:46 UTC (rev 8926)
@@ -23,10 +23,10 @@
                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                     <h:outputLabel for="username">Username</h:outputLabel>
                     <h:inputText id="username"
-                              value="#{identity.username}"/>
+                              value="#{credentials.username}"/>
                     <h:outputLabel for="password">Password</h:outputLabel>
                     <h:inputSecret id="password"
-                                value="#{identity.password}"/>
+                                value="#{credentials.password}"/>
                     <h:outputLabel for="rememberMe">Remember me</h:outputLabel>
                     <h:selectBooleanCheckbox id="rememberMe"
                                           value="#{identity.rememberMe}"/>




More information about the seam-commits mailing list