|
@@ -22,7 +22,8 @@ class SignupController extends \lithium\action\Controller {
|
|
|
//The user isn't active until after they confirm.
|
|
//The user isn't active until after they confirm.
|
|
|
$user->confirmed = false;
|
|
$user->confirmed = false;
|
|
|
$user->active = false;
|
|
$user->active = false;
|
|
|
- $user->joinedOn = Date("F j, Y, g:i a");
|
|
|
|
|
|
|
+ $user->joinedon = date('Y-m-d H:i:s', time());
|
|
|
|
|
+ $user->level = "user";
|
|
|
|
|
|
|
|
//By default save does validation at the same time,
|
|
//By default save does validation at the same time,
|
|
|
//If there are errors its stuffs them into the $user->_erorrs variable,
|
|
//If there are errors its stuffs them into the $user->_erorrs variable,
|