]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/AuthController.php
Making sure MyISAM is set for the tables that need it for new installtions that are...
[bookstack] / app / Http / Controllers / Auth / AuthController.php
index ef44b2aef9834f62920338c211086223c9cf761e..beb191d624f1841169a17b5467aff9e28c9f3e4d 100644 (file)
@@ -194,14 +194,11 @@ class AuthController extends Controller
         }
 
         if (setting('registration-confirmation') || setting('registration-restrict')) {
-            $newUser->email_confirmed = false;
             $newUser->save();
             $this->emailConfirmationService->sendConfirmation($newUser);
             return redirect('/register/confirm');
         }
 
-        $newUser->email_confirmed = true;
-
         auth()->login($newUser);
         session()->flash('success', 'Thanks for signing up! You are now registered and signed in.');
         return redirect($this->redirectPath());