0
새 사용자를 만든 다음 로그인하려고하면 사용자가 데이터베이스에 저장되고 해당 역할도 저장됩니다. 내가 리디렉션에 충돌하지 않지만 그들이에 기록 된 말을 나는 인증 : 인스턴스 -> 로그인을 디버깅하고 난 사용자 로그인시 false를 반환하는 Auth :: instance
return array(
'driver' => 'ORM',
'hash_method' => 'sha256',
'hash_key' => 'bernardo',
'lifetime' => 1209600,
'session_type' => Session::$default,
'session_key' => 'auth_user',
구성
) 다시FALSE
public function action_index()
{
$view = View::factory('index/home');
if(Request::current()->post()):
$post = $_POST;
try {
$user = ORM::factory('User');
$user->username = $post['username'];
$user->password = $post["password"];
$user->email = $post["email"];
$user->logins = +1;
$user->save();
if ($user->saved()):
$user->add('roles', ORM::factory('Role')->where('name', '=', 'login')->find());
$logged_in = Auth::instance()->login($post['username'], $post['password']);
echo Debug::vars($logged_in); exit;
if ($logged_in):
HTTP::redirect("/dashboard/");
endif;
endif;
} catch (Exception $e) {
echo Debug::vars($e); exit;
}
endif;
$index_page = $view->render();
$this->response->body($index_page);
}
얻을.;
해싱 중에 암호가 잘못 될 수 있습니까?