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
325291d3
Commit
325291d3
authored
Nov 30, 2017
by
Viral Solani
Committed by
StyleCI Bot
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
0fc48c64
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
19 deletions
+17
-19
ForgotPasswordController.php
app/Http/Controllers/Api/V1/ForgotPasswordController.php
+7
-9
RegisterController.php
app/Http/Controllers/Api/V1/RegisterController.php
+4
-4
UsersController.php
app/Http/Controllers/Api/V1/UsersController.php
+3
-3
Kernel.php
app/Http/Kernel.php
+2
-2
User.php
app/Models/Access/User/User.php
+1
-1
No files found.
app/Http/Controllers/Api/V1/ForgotPasswordController.php
View file @
325291d3
...
...
@@ -2,17 +2,14 @@
namespace
App\Http\Controllers\Api\V1
;
use
Validator
;
use
App\Models\User\User
;
use
Illuminate\Http\Request
;
use
App\Http\Controllers\Controller
;
use
App\Repositories\UserRepository
;
use
Illuminate\Support\Facades\Password
;
use
App\Notifications\UserNeedsPasswordReset
;
use
App\Repositories\UserRepository
;
use
Illuminate\Http\Request
;
use
Validator
;
class
ForgotPasswordController
extends
APIController
{
/**
* __construct.
*
...
...
@@ -27,6 +24,7 @@ class ForgotPasswordController extends APIController
* Send a reset link to the given user.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\JsonResponse
*/
public
function
sendResetLinkEmail
(
Request
$request
)
...
...
@@ -41,7 +39,7 @@ class ForgotPasswordController extends APIController
$user
=
$this
->
repository
->
getUserByEmail
(
$request
);
if
(
!
$user
)
{
if
(
!
$user
)
{
return
$this
->
respondNotFound
(
trans
(
'api.messages.forgot_password.validation.email_not_found'
));
}
...
...
app/Http/Controllers/Api/V1/RegisterController.php
View file @
325291d3
...
...
@@ -2,12 +2,12 @@
namespace
App\Http\Controllers\Api\V1
;
use
App\Models\User\User
;
use
App\Repositories\Frontend\Access\User\UserRepository
;
use
Config
;
use
Illuminate\Http\Request
;
use
JWTAuth
;
use
Validator
;
use
App\Models\User\User
;
use
Illuminate\Http\Request
;
use
App\Repositories\Frontend\Access\User\UserRepository
;
class
RegisterController
extends
APIController
{
...
...
@@ -38,7 +38,7 @@ class RegisterController extends APIController
'email'
=>
'required|email|unique:users'
,
'password'
=>
'required|min:4'
,
'password_confirmation'
=>
'required|same:password'
,
'is_term_accept'
=>
'required'
'is_term_accept'
=>
'required'
,
]);
if
(
$validation
->
fails
())
{
...
...
app/Http/Controllers/Api/V1/UsersController.php
View file @
325291d3
...
...
@@ -2,11 +2,11 @@
namespace
App\Http\Controllers\Api\V1
;
use
Validator
;
use
App\Models\User\User
;
use
Illuminate\Http\Request
;
use
App\Http\Resources\UserResource
;
use
App\Models\User\User
;
use
App\Repositories\Backend\Access\User\UserRepository
;
use
Illuminate\Http\Request
;
use
Validator
;
class
UsersController
extends
APIController
{
...
...
app/Http/Kernel.php
View file @
325291d3
app/Models/Access/User/User.php
View file @
325291d3
...
...
@@ -9,8 +9,8 @@ use App\Models\Access\User\Traits\UserAccess;
use
App\Models\Access\User\Traits\UserSendPasswordReset
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Foundation\Auth\User
as
Authenticatable
;
use
Tymon\JWTAuth\Contracts\JWTSubject
;
use
Illuminate\Notifications\Notifiable
;
use
Tymon\JWTAuth\Contracts\JWTSubject
;
/**
* Class User.
...
...
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