Permalink
Browse files

remove auto login

  • Loading branch information...
1 parent 751bb8f commit 8078630bf15a240bd3d70a028a48d55facf42504 @gwoo gwoo committed Apr 11, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 libraries/li3_users/controllers/UsersController.php
@@ -79,15 +79,12 @@ public function register() {
if (!empty($this->request->data)) {
$user = User::create($this->request->data);
if ($user->save()) {
- Auth::set('user', $user->to('array'));
Session::write('attempts', 0, array('name' => 'cooldown'));
- $this->redirect(array(
- 'controller' => 'users', 'action' => 'view',
- 'args' => array($user->_id)
+ return $this->redirect(array(
+ 'controller' => 'users', 'action' => 'login',
));
- } else {
- $errors = $user->errors();
}
+ $errors = $user->errors();
}
if (empty($user)) {
$user = User::create();

0 comments on commit 8078630

Please sign in to comment.