Ejemplo n.º 1
0
Archivo: Auth.php Proyecto: ptphp/ptphp
 /**
  * 登陆
  * @return string
  */
 function action_login_local()
 {
     if (!Utils::is_local_dev()) {
         _throw("no auth");
     }
     $username = Utils::I("username");
     $password = Utils::I("password");
     Model_Auth::do_login($username, $password);
     return "登陆成功";
 }