コード例 #1
0
 public function saveRejected($id)
 {
     $email = Input::get('email');
     $password = Input::get('password');
     $user_id = Input::get('user_id');
     Auth::attempt(array('email' => $email, 'password' => $password));
     if (Auth::check()) {
         $rejected = new Rejected();
         $rejected->user_alcancia_id = $id;
         $rejected->save();
         return "Rejected Guardado Ok";
     } else {
         return "No logueado";
     }
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
     $cur = $this->userauth->current(FALSE);
     if (empty($cur)) {
         $this->_return_json(array('status' => C('status.auth.login_timeout'), 'msg' => '登录超时,请重新登录'));
     } else {
         self::$user_info = $cur;
     }
     $this->load->library(array('form_validation', 'excel_export'));
 }