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; }
public static function getLoginUserName() { $u = Auth::instance()->getLoginInfo(); return $u['name']; }