Some code cleanup in the account code.

This commit is contained in:
James Cole
2015-01-17 07:25:44 +01:00
parent 7d4006b205
commit a854b2c17e
10 changed files with 40 additions and 223 deletions

View File

@@ -78,9 +78,10 @@ class UserController extends BaseController
if ($user) {
$result = $email->sendVerificationMail($user);
if($result === false) {
if ($result === false) {
$user->delete();
return View::make('error')->with('message','The email message could not be send. See the log files.');
return View::make('error')->with('message', 'The email message could not be send. See the log files.');
}
return View::make('user.verification-pending');
@@ -126,7 +127,7 @@ class UserController extends BaseController
public function register()
{
if (Config::get('mail.from.address') == '@gmail.com' || Config::get('mail.from.address') == '') {
return View::make('error')->with('message', 'Configuration error in <code>app/config/'.App::environment().'/mail.php</code>');
return View::make('error')->with('message', 'Configuration error in <code>app/config/' . App::environment() . '/mail.php</code>');
}
return View::make('user.register');