Permalink
Browse files

Merged r3718 into branches/api_changes

  • Loading branch information...
1 parent 4685432 commit f493e526e2795166ffa2fa4d272c654b974ec401 Shadowhand committed Nov 23, 2008
Showing with 4 additions and 3 deletions.
  1. +4 −3 modules/auth/classes/controller/auth.php
@@ -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']);

0 comments on commit f493e52

Please sign in to comment.