Skip to content

Commit

Permalink
Merged r3718 into branches/api_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowhand authored and Shadowhand committed Nov 23, 2008
1 parent 4685432 commit f493e52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/auth/classes/controller/auth.php
Expand Up @@ -94,11 +94,12 @@ public function create()
// Create a new user
$user = ORM::factory('user');

// Give the user login privileges
$user->add(ORM::factory('role', 'login'));

// Validate and save the new user
if ($user->validate($post, TRUE))
{
// Give the user login privileges
$user->add(ORM::factory('role', 'login'));

// Log in now
Auth::instance()->login($user, $post['password']);

Expand Down

0 comments on commit f493e52

Please sign in to comment.