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
af9cc834
Commit
af9cc834
authored
Dec 03, 2017
by
Viral Solani
Committed by
StyleCI Bot
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
bcfbaa1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
ResetPasswordController.php
app/Http/Controllers/Api/V1/ResetPasswordController.php
+10
-9
No files found.
app/Http/Controllers/Api/V1/ResetPasswordController.php
View file @
af9cc834
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
namespace
App\Http\Controllers\Api\V1
;
namespace
App\Http\Controllers\Api\V1
;
use
App\Repositories\Frontend\Access\User\UserRepository
;
use
Illuminate\Foundation\Auth\ResetsPasswords
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
/**
/**
...
@@ -12,7 +10,8 @@ use Illuminate\Http\Request;
...
@@ -12,7 +10,8 @@ use Illuminate\Http\Request;
class
ResetPasswordController
extends
APIController
class
ResetPasswordController
extends
APIController
{
{
/**
/**
* Reset Password
* Reset Password.
*
* @param ResetPasswordRequest
* @param ResetPasswordRequest
* @param JWTAuth
* @param JWTAuth
*
*
...
@@ -26,11 +25,11 @@ class ResetPasswordController extends APIController
...
@@ -26,11 +25,11 @@ class ResetPasswordController extends APIController
}
}
);
);
if
(
$response
!==
Password
::
PASSWORD_RESET
)
{
if
(
$response
!==
Password
::
PASSWORD_RESET
)
{
throw
new
HttpException
(
500
);
throw
new
HttpException
(
500
);
}
}
if
(
!
Config
::
get
(
'boilerplate.reset_password.release_token'
))
{
if
(
!
Config
::
get
(
'boilerplate.reset_password.release_token'
))
{
return
response
()
->
json
([
return
response
()
->
json
([
'status'
=>
'ok'
,
'status'
=>
'ok'
,
]);
]);
...
@@ -40,7 +39,7 @@ class ResetPasswordController extends APIController
...
@@ -40,7 +39,7 @@ class ResetPasswordController extends APIController
return
response
()
->
json
([
return
response
()
->
json
([
'status'
=>
'ok'
,
'status'
=>
'ok'
,
'token'
=>
$JWTAuth
->
fromUser
(
$user
)
'token'
=>
$JWTAuth
->
fromUser
(
$user
),
]);
]);
}
}
...
@@ -58,6 +57,7 @@ class ResetPasswordController extends APIController
...
@@ -58,6 +57,7 @@ class ResetPasswordController extends APIController
* Get the password reset credentials from the request.
* Get the password reset credentials from the request.
*
*
* @param ResetPasswordRequest $request
* @param ResetPasswordRequest $request
*
* @return array
* @return array
*/
*/
protected
function
credentials
(
ResetPasswordRequest
$request
)
protected
function
credentials
(
ResetPasswordRequest
$request
)
...
@@ -72,6 +72,7 @@ class ResetPasswordController extends APIController
...
@@ -72,6 +72,7 @@ class ResetPasswordController extends APIController
*
*
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param string $password
* @param string $password
*
* @return void
* @return void
*/
*/
protected
function
reset
(
$user
,
$password
)
protected
function
reset
(
$user
,
$password
)
...
...
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