From 1cb188ab58ef8d07969416d72438a3e3d681eb0d Mon Sep 17 00:00:00 2001 From: Gianluca Candiotti Date: Wed, 23 Aug 2017 12:06:42 -0500 Subject: [PATCH 1/2] Fix Auth command views stubs passwords/reset.stub was handling a success status message stored in session, but there isn't a flow that redirects to that view with said message since the user is authenticated and redirected into the application itself when the password is successfully changed. This commit moves the status message from the passwords/reset.stub to the home.stub so it's clear to the user that his password was changed once he is logged in. --- .../Auth/Console/stubs/make/views/auth/passwords/reset.stub | 6 ------ src/Illuminate/Auth/Console/stubs/make/views/home.stub | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub index e87d9cbd215d..84ec0101610e 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub @@ -8,12 +8,6 @@
Reset Password
- @if (session('status')) -
- {{ session('status') }} -
- @endif -
{{ csrf_field() }} diff --git a/src/Illuminate/Auth/Console/stubs/make/views/home.stub b/src/Illuminate/Auth/Console/stubs/make/views/home.stub index de73a980ea5e..d8437bf890ac 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/home.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/home.stub @@ -8,6 +8,12 @@
Dashboard
+ @if (session('status')) +
+ {{ session('status') }} +
+ @endif + You are logged in!
From b727cea7f32fe02f0897326d94a6b96babd6698c Mon Sep 17 00:00:00 2001 From: Gianluca Candiotti Date: Wed, 23 Aug 2017 12:16:42 -0500 Subject: [PATCH 2/2] Make spacing more consistent between elements --- src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub | 1 + .../Auth/Console/stubs/make/views/auth/passwords/email.stub | 1 + src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub index e0e0b5800255..07924ce66fae 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub @@ -6,6 +6,7 @@
Login
+
{{ csrf_field() }} diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub index a29ac6df7716..ad38245bd3c9 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub @@ -6,6 +6,7 @@
Reset Password
+
@if (session('status'))
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub index 5f11eee2116f..38eef838417d 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub @@ -6,6 +6,7 @@
Register
+
{{ csrf_field() }}