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
ac405436
Unverified
Commit
ac405436
authored
Nov 14, 2017
by
Viral Solani
Committed by
GitHub
Nov 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25 from viralsolani/analysis-Xp1O56
Apply fixes from StyleCI
parents
76e0b3a5
10cdd71c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
AuthController.php
app/Http/Controllers/Api/V1/AuthController.php
+6
-6
No files found.
app/Http/Controllers/Api/V1/AuthController.php
View file @
ac405436
...
...
@@ -59,12 +59,12 @@ class AuthController extends APIController
JWTAuth
::
parseToken
()
->
authenticate
();
}
catch
(
JWTException
$e
)
{
return
$this
->
respond
([
'authenticated'
=>
false
'authenticated'
=>
false
,
]);
}
return
$this
->
respond
([
'authenticated'
=>
true
'authenticated'
=>
true
,
]);
}
...
...
@@ -136,7 +136,7 @@ class AuthController extends APIController
}
/**
* Activate User
* Activate User
.
*
* @param $activation_token [description]
*
...
...
@@ -154,13 +154,13 @@ class AuthController extends APIController
return
$this
->
throwValidation
(
'Your account has already been activated!'
);
}
$user
->
confirmed
=
1
;
$user
->
status
=
1
;
$user
->
confirmed
=
1
;
$user
->
status
=
1
;
$user
->
save
();
$user
->
notify
(
new
Activated
(
$user
));
return
$this
->
respond
([
'message'
=>
'Your account has been activated!'
'message'
=>
'Your account has been activated!'
,
]);
}
...
...
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