mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-08 21:58:03 +00:00
Some code cleanup in the account code.
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user