Beispiel #1
0
 public function captcha()
 {
     $cfg = Config::get('app/login/captcha');
     $cap = new Captcha();
     $cap->width = $cfg['width'];
     $cap->height = $cfg['height'];
     $cap->maxWordLength = $cfg['words'];
     $cap->minWordLength = $cfg['words'];
     $cap->fontSize = $cfg['font_size'];
     $text = null;
     $cap->CreateImage($text);
     Auth::setCaptcha($text);
     die;
 }
Beispiel #2
0
 public static function getLoginUserName()
 {
     $u = Auth::instance()->getLoginInfo();
     return $u['name'];
 }