Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
918d9403
Unverified
Commit
918d9403
authored
Dec 26, 2017
by
Viral Solani
Committed by
GitHub
Dec 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #109 from viralsolani/analysis-q1vO2N
Apply fixes from StyleCI
parents
fa096ef8
2f00f1ca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
helpers.php
app/Helpers/helpers.php
+1
-1
ResetPasswordController.php
...ttp/Controllers/Frontend/Auth/ResetPasswordController.php
+3
-2
ResetPasswordTest.php
tests/Feature/Auth/ResetPasswordTest.php
+2
-6
No files found.
app/Helpers/helpers.php
View file @
918d9403
...
...
@@ -17,7 +17,7 @@ function generateUuid()
return
uuid
::
uuid4
();
}
if
(
!
function_exists
(
'homeRoute'
))
{
if
(
!
function_exists
(
'homeRoute'
))
{
/**
* Return the route to the "home" page depending on authentication/authorization status.
...
...
app/Http/Controllers/Frontend/Auth/ResetPasswordController.php
View file @
918d9403
...
...
@@ -50,7 +50,7 @@ class ResetPasswordController extends Controller
*/
public
function
showResetForm
(
$token
=
null
)
{
if
(
!
$token
)
{
if
(
!
$token
)
{
return
redirect
()
->
route
(
'frontend.auth.password.email'
);
}
...
...
@@ -96,6 +96,7 @@ class ResetPasswordController extends Controller
* Get the response for a successful password reset.
*
* @param string $response
*
* @return \Illuminate\Http\RedirectResponse
*/
protected
function
sendResetResponse
(
$response
)
...
...
tests/Feature/Auth/ResetPasswordTest.php
View file @
918d9403
...
...
@@ -2,16 +2,13 @@
namespace
Tests\Feature\Auth
;
use
Tests\BrowserKitTestCase
;
use
App\Notifications\Frontend\Auth\UserNeedsPasswordReset
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Event
;
use
App\Events\Frontend\Auth\UserLoggedIn
;
use
Illuminate\Support\Facades\Notification
;
use
App\Notifications\Frontend\Auth\UserNeedsPasswordReset
;
use
Tests\BrowserKitTestCase
;
class
ResetPasswordTest
extends
BrowserKitTestCase
{
/** @test */
public
function
forgot_password_page_loads_properly
()
{
...
...
@@ -73,5 +70,4 @@ class ResetPasswordTest extends BrowserKitTestCase
->
press
(
'Reset Password'
)
->
see
(
$this
->
user
->
first_name
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment