Ejemplo n.º 1
0
Archivo: Mail.php Proyecto: rjha/sc
 function addResetPassword($name, $email)
 {
     //3mik user account exists with this email?
     $row = mysql\User::has3mikEmail($email);
     $count = $row["count"];
     if ($count <= 0) {
         $message = "Sorry! We could not find any 3mik account with this email.";
         throw new UIException(array($message));
     }
     //is a request already pending for this email?
     $row = mysql\Mail::isPending($email);
     $count = $row["count"];
     if ($count > 0) {
         $message = "Your request is already pending. Please try after 20 minutes.";
         throw new UIException(array($message));
     }
     $token = Util::getMD5GUID();
     mysql\Mail::add($name, $email, $token, AppConstants::RESET_PASSWORD_MAIL);
 }
Ejemplo n.º 2
0
Archivo: User.php Proyecto: rjha/sc
 function taint($userId)
 {
     mysql\User::set_tu_bit($userId, 1);
 }