Skip to content

Commit

Permalink
Fixes in Auth/Console (#20707)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gianlucacandiotti authored and taylorotwell committed Aug 23, 2017
1 parent 91765f5 commit 9b519d0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>

<div class="panel-body">
<form class="form-horizontal" method="POST" action="{{ route('login') }}">
{{ csrf_field() }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>

<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
<div class="panel-heading">Reset Password</div>

<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif

<form class="form-horizontal" method="POST" action="{{ route('password.request') }}">
{{ csrf_field() }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>

<div class="panel-body">
<form class="form-horizontal" method="POST" action="{{ route('register') }}">
{{ csrf_field() }}
Expand Down
6 changes: 6 additions & 0 deletions src/Illuminate/Auth/Console/stubs/make/views/home.stub
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<div class="panel-heading">Dashboard</div>

<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif

You are logged in!
</div>
</div>
Expand Down

0 comments on commit 9b519d0

Please sign in to comment.