Exemple #1
0
 public static Member getLoggedInUser() {
   return Member.find("byEmail", session.get("username")).first();
 }
Exemple #2
0
 static boolean authenticate(String username, String password) {
   return Member.connect(username, password) != null;
 }