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
680a9415
Unverified
Commit
680a9415
authored
Dec 04, 2017
by
Viral Solani
Committed by
GitHub
Dec 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #60 from viralsolani/develop
API Fixes
parents
9f610cf3
94ecda8c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
23 deletions
+24
-23
ForgotPasswordController.php
app/Http/Controllers/Api/V1/ForgotPasswordController.php
+1
-1
UserResource.php
app/Http/Resources/UserResource.php
+1
-0
UserRepository.php
app/Repositories/Frontend/Access/User/UserRepository.php
+1
-1
composer.lock
composer.lock
+18
-18
mix-manifest.json
public/mix-manifest.json
+3
-3
No files found.
app/Http/Controllers/Api/V1/ForgotPasswordController.php
View file @
680a9415
...
@@ -43,7 +43,7 @@ class ForgotPasswordController extends APIController
...
@@ -43,7 +43,7 @@ class ForgotPasswordController extends APIController
return
$this
->
respondNotFound
(
trans
(
'api.messages.forgot_password.validation.email_not_found'
));
return
$this
->
respondNotFound
(
trans
(
'api.messages.forgot_password.validation.email_not_found'
));
}
}
$token
=
$this
->
repository
->
createNew
Token
();
$token
=
$this
->
repository
->
save
Token
();
$user
->
notify
(
new
UserNeedsPasswordReset
(
$token
));
$user
->
notify
(
new
UserNeedsPasswordReset
(
$token
));
...
...
app/Http/Resources/UserResource.php
View file @
680a9415
...
@@ -19,6 +19,7 @@ class UserResource extends Resource
...
@@ -19,6 +19,7 @@ class UserResource extends Resource
'id'
=>
$this
->
id
,
'id'
=>
$this
->
id
,
'name'
=>
$this
->
name
,
'name'
=>
$this
->
name
,
'email'
=>
$this
->
email
,
'email'
=>
$this
->
email
,
'role'
=>
$this
->
roles
()
->
first
()
->
name
,
'registered_at'
=>
$this
->
created_at
->
toIso8601String
(),
'registered_at'
=>
$this
->
created_at
->
toIso8601String
(),
];
];
}
}
...
...
app/Repositories/Frontend/Access/User/UserRepository.php
View file @
680a9415
...
@@ -293,7 +293,7 @@ class UserRepository extends BaseRepository
...
@@ -293,7 +293,7 @@ class UserRepository extends BaseRepository
*
*
* @return string
* @return string
*/
*/
public
function
createNew
Token
()
public
function
save
Token
()
{
{
$token
=
hash_hmac
(
'sha256'
,
Str
::
random
(
40
),
'hashKey'
);
$token
=
hash_hmac
(
'sha256'
,
Str
::
random
(
40
),
'hashKey'
);
...
...
composer.lock
View file @
680a9415
...
@@ -4915,16 +4915,16 @@
...
@@ -4915,16 +4915,16 @@
},
},
{
{
"name": "phpunit/phpunit",
"name": "phpunit/phpunit",
"version": "6.
4.4
",
"version": "6.
5.1
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "
562f7dc75d46510a4ed5d16189ae57fbe45a9932
"
"reference": "
8eea3cfbfe3c8363f8111e24569bdb6ead71ea6e
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
562f7dc75d46510a4ed5d16189ae57fbe45a9932
",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
8eea3cfbfe3c8363f8111e24569bdb6ead71ea6e
",
"reference": "
562f7dc75d46510a4ed5d16189ae57fbe45a9932
",
"reference": "
8eea3cfbfe3c8363f8111e24569bdb6ead71ea6e
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -4938,12 +4938,12 @@
...
@@ -4938,12 +4938,12 @@
"phar-io/version": "^1.0",
"phar-io/version": "^1.0",
"php": "^7.0",
"php": "^7.0",
"phpspec/prophecy": "^1.7",
"phpspec/prophecy": "^1.7",
"phpunit/php-code-coverage": "^5.2.
2
",
"phpunit/php-code-coverage": "^5.2.
3
",
"phpunit/php-file-iterator": "^1.4.
2
",
"phpunit/php-file-iterator": "^1.4.
3
",
"phpunit/php-text-template": "^1.2.1",
"phpunit/php-text-template": "^1.2.1",
"phpunit/php-timer": "^1.0.9",
"phpunit/php-timer": "^1.0.9",
"phpunit/phpunit-mock-objects": "^
4.0.3
",
"phpunit/phpunit-mock-objects": "^
5.0
",
"sebastian/comparator": "^2.
0.2
",
"sebastian/comparator": "^2.
1
",
"sebastian/diff": "^2.0",
"sebastian/diff": "^2.0",
"sebastian/environment": "^3.1",
"sebastian/environment": "^3.1",
"sebastian/exporter": "^3.1",
"sebastian/exporter": "^3.1",
...
@@ -4969,7 +4969,7 @@
...
@@ -4969,7 +4969,7 @@
"type": "library",
"type": "library",
"extra": {
"extra": {
"branch-alias": {
"branch-alias": {
"dev-master": "6.
4
.x-dev"
"dev-master": "6.
5
.x-dev"
}
}
},
},
"autoload": {
"autoload": {
...
@@ -4995,20 +4995,20 @@
...
@@ -4995,20 +4995,20 @@
"testing",
"testing",
"xunit"
"xunit"
],
],
"time": "2017-1
1-08T11:26:09
+00:00"
"time": "2017-1
2-01T09:57:23
+00:00"
},
},
{
{
"name": "phpunit/phpunit-mock-objects",
"name": "phpunit/phpunit-mock-objects",
"version": "
4.0.4
",
"version": "
5.0.3
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
"reference": "
2f789b59ab89669015ad984afa350c4ec577ade0
"
"reference": "
a58b8fc03ca12d8bf6122ea942bc72c99c7cda4a
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/
2f789b59ab89669015ad984afa350c4ec577ade0
",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/
a58b8fc03ca12d8bf6122ea942bc72c99c7cda4a
",
"reference": "
2f789b59ab89669015ad984afa350c4ec577ade0
",
"reference": "
a58b8fc03ca12d8bf6122ea942bc72c99c7cda4a
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -5021,7 +5021,7 @@
...
@@ -5021,7 +5021,7 @@
"phpunit/phpunit": "<6.0"
"phpunit/phpunit": "<6.0"
},
},
"require-dev": {
"require-dev": {
"phpunit/phpunit": "^6.
0
"
"phpunit/phpunit": "^6.
5
"
},
},
"suggest": {
"suggest": {
"ext-soap": "*"
"ext-soap": "*"
...
@@ -5029,7 +5029,7 @@
...
@@ -5029,7 +5029,7 @@
"type": "library",
"type": "library",
"extra": {
"extra": {
"branch-alias": {
"branch-alias": {
"dev-master": "
4
.0.x-dev"
"dev-master": "
5
.0.x-dev"
}
}
},
},
"autoload": {
"autoload": {
...
@@ -5044,7 +5044,7 @@
...
@@ -5044,7 +5044,7 @@
"authors": [
"authors": [
{
{
"name": "Sebastian Bergmann",
"name": "Sebastian Bergmann",
"email": "s
b@sebastian-bergmann
.de",
"email": "s
ebastian@phpunit
.de",
"role": "lead"
"role": "lead"
}
}
],
],
...
@@ -5054,7 +5054,7 @@
...
@@ -5054,7 +5054,7 @@
"mock",
"mock",
"xunit"
"xunit"
],
],
"time": "2017-
08-03T14:08:16
+00:00"
"time": "2017-
12-01T16:12:08
+00:00"
},
},
{
{
"name": "sebastian/code-unit-reverse-lookup",
"name": "sebastian/code-unit-reverse-lookup",
...
...
public/mix-manifest.json
View file @
680a9415
{
{
"/js/frontend.js"
:
"/js/frontend.
70ee44a92d84e7318a9d
.js"
,
"/js/frontend.js"
:
"/js/frontend.
d3a9d9963b6da237bfe8
.js"
,
"/js/backend.js"
:
"/js/backend.
9cdae6ab449e701ce881
.js"
,
"/js/backend.js"
:
"/js/backend.
51a14fd841ccd198e500
.js"
,
"/mix.js"
:
"/mix.247ab120fe7680658924.js"
,
"/mix.js"
:
"/mix.247ab120fe7680658924.js"
,
"/css/frontend.css"
:
"/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css"
,
"/css/frontend.css"
:
"/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css"
,
"/css/backend.css"
:
"/css/backend.f8550f50504e5b8ef6055285205f223a.css"
,
"/css/backend.css"
:
"/css/backend.f8550f50504e5b8ef6055285205f223a.css"
,
"/css/backend-custom.css"
:
"/css/backend-custom.50f14193ab908e3cf471dea6cb6616ae.css"
,
"/css/backend-custom.css"
:
"/css/backend-custom.50f14193ab908e3cf471dea6cb6616ae.css"
,
"/js/backend-custom.js"
:
"/js/backend-custom.69
4670b0d97bf54111bac3bd91ba3fcf
.js"
,
"/js/backend-custom.js"
:
"/js/backend-custom.69
e7d487a5a38a38520a62a5c53584f9
.js"
,
"/js/dataTable.js"
:
"/js/dataTable.f968d300a6a0b871f138f114361259c8.js"
"/js/dataTable.js"
:
"/js/dataTable.f968d300a6a0b871f138f114361259c8.js"
}
}
\ No newline at end of file
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