Example #1
0
 public static void sendModeration(String name, float point) {
   Task t = new Task(name, point);
   t.status = TaskStatus.PENDING;
   t.suggestedBy = SUser.findByEmail(Auth.connected());
   t.save();
   thanks();
 }
Example #2
0
 @Before
 public static void initLogin() {
   if (Security.isConnected()) {
     SUser u = SUser.findByEmail(Security.connected());
     if (null != u) {
       renderArgs.put("user", u.email);
       renderArgs.put("user_name", u.name);
       renderArgs.put("loggedIn", true);
     }
   }
 }