From 9b519d04017ed8e9624295051e4884f21fcb2349 Mon Sep 17 00:00:00 2001 From: Gianluca Date: Wed, 23 Aug 2017 15:25:41 -0500 Subject: [PATCH] Fixes in Auth/Console (#20707) * 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. * Make spacing more consistent between elements --- .../Auth/Console/stubs/make/views/auth/login.stub | 1 + .../Auth/Console/stubs/make/views/auth/passwords/email.stub | 1 + .../Auth/Console/stubs/make/views/auth/passwords/reset.stub | 6 ------ .../Auth/Console/stubs/make/views/auth/register.stub | 1 + src/Illuminate/Auth/Console/stubs/make/views/home.stub | 6 ++++++ 5 files changed, 9 insertions(+), 6 deletions(-) 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/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/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() }} 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!