Beispiel #1
0
 public static function setMd5($var)
 {
     return $var != '' ? Encrypter::md5($var) : null;
 }
Beispiel #2
0
 public function exists($email, $password)
 {
     return self::db()->value($this->getPrimaryKey(), array('email' => $email, 'password' => Encrypter::md5($password)));
 }
Beispiel #3
0
 public static function get($value = null)
 {
     return Encrypter::md5(Request::env('SERVER')->REMOTE_ADDR->val() . Request::env('SERVER')->HTTP_USER_AGENT->val() . Request::env('SERVER')->HTTP_HOST->val() . Session::id() . $value);
 }