+ Password Reset+A password reset was requested for this email address on the application found at {{url('/')}}. If you did not request a password change please ignore this email. +
|
+
diff --git a/app/Http/Controllers/Auth/PasswordController.php b/app/Http/Controllers/Auth/PasswordController.php index 5f3747b4a..053979288 100644 --- a/app/Http/Controllers/Auth/PasswordController.php +++ b/app/Http/Controllers/Auth/PasswordController.php @@ -20,10 +20,10 @@ class PasswordController extends Controller use ResetsPasswords; + protected $redirectTo = '/'; + /** * Create a new password controller instance. - * - * @return void */ public function __construct() { diff --git a/app/Http/routes.php b/app/Http/routes.php index a6cda78e6..4811b74d0 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -86,6 +86,13 @@ Route::group(['middleware' => 'auth'], function() { }); +// Login/Logout routes Route::get('/login', 'Auth\AuthController@getLogin'); Route::post('/login', 'Auth\AuthController@postLogin'); Route::get('/logout', 'Auth\AuthController@getLogout'); +// Password reset link request routes... +Route::get('/password/email', 'Auth\PasswordController@getEmail'); +Route::post('/password/email', 'Auth\PasswordController@postEmail'); +// Password reset routes... +Route::get('/password/reset/{token}', 'Auth\PasswordController@getReset'); +Route::post('/password/reset', 'Auth\PasswordController@postReset'); \ No newline at end of file diff --git a/config/mail.php b/config/mail.php index a22807e71..a45145309 100644 --- a/config/mail.php +++ b/config/mail.php @@ -54,7 +54,7 @@ return [ | */ - 'from' => ['address' => null, 'name' => null], + 'from' => ['address' => env('MAIL_FROM', 'mail@bookstackapp.com'), 'name' => 'BookStack'], /* |-------------------------------------------------------------------------- diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 97062cb79..dbf6db87b 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -29,6 +29,7 @@
Enter your email below and you will be sent an email with a password reset link.
+ + ++ |
+
+
+
+
+
+
+
|
+ + |