コード例 #1
0
 public function actionLogin()
 {
     if (isset($_POST['login'])) {
         if (!Auth::login($_POST['login'], $_POST['password'])) {
             Error::setError("login", Lang::get("wrong_authorization"));
         }
     }
     UserStats::logincount();
     $this->redirect("/");
 }