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