示例#1
0
文件: Security.java 项目: caucho/qtck
 public static Member getLoggedInUser() {
   return Member.find("byEmail", session.get("username")).first();
 }
示例#2
0
文件: Security.java 项目: caucho/qtck
 static boolean authenticate(String username, String password) {
   return Member.connect(username, password) != null;
 }