[seam-commits] Seam SVN: r13132 - examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/security.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sun Jun 13 18:02:05 EDT 2010
Author: pete.muir at jboss.org
Date: 2010-06-13 18:02:05 -0400 (Sun, 13 Jun 2010)
New Revision: 13132
Modified:
examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java
Log:
remove commented code (we use a vcs with history!)
Modified: examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java
===================================================================
--- examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java 2010-06-13 18:49:10 UTC (rev 13131)
+++ examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/security/AuthenticatorBean.java 2010-06-13 22:02:05 UTC (rev 13132)
@@ -2,8 +2,6 @@
import javax.ejb.Stateless;
import javax.inject.Inject;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
import org.slf4j.Logger;
@@ -19,28 +17,10 @@
@Inject
private Logger log;
- @PersistenceContext
- private EntityManager em;
-
- // @Inject
- // private Credentials credentials;
-
public boolean authenticate()
{
- // if ((credentials.getUsername() != null) &&
- // (credentials.getUsername().length() > 0))
- // {
- // log.info("Authenticating {0}...", credentials.getUsername());
- // User user = em.find(User.class, credentials.getUsername());
- // if (user != null &&
- // user.getPassword().equals(credentials.getPassword()))
- // {
- // credentials.setPassword(null);
+ log.info("Logging you in!");
return true;
- // }
- // }
-
- // return false;
}
}
More information about the seam-commits
mailing list