Skip to content

Commit

Permalink
Merge pull request #60 from viralsolani/develop
Browse files Browse the repository at this point in the history
API Fixes
  • Loading branch information
viralsolani committed Dec 3, 2017
2 parents 9f610cf + 94ecda8 commit 680a941
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/V1/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function sendResetLinkEmail(Request $request)
return $this->respondNotFound(trans('api.messages.forgot_password.validation.email_not_found'));
}

$token = $this->repository->createNewToken();
$token = $this->repository->saveToken();

$user->notify(new UserNeedsPasswordReset($token));

Expand Down
1 change: 1 addition & 0 deletions app/Http/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function toArray($request)
'id' => $this->id,
'name' => $this->name,
'email' => $this->email,
'role' => $this->roles()->first()->name,
'registered_at' => $this->created_at->toIso8601String(),
];
}
Expand Down
2 changes: 1 addition & 1 deletion app/Repositories/Frontend/Access/User/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function changePassword($input)
*
* @return string
*/
public function createNewToken()
public function saveToken()
{
$token = hash_hmac('sha256', Str::random(40), 'hashKey');

Expand Down
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"/js/frontend.js": "/js/frontend.70ee44a92d84e7318a9d.js",
"/js/backend.js": "/js/backend.9cdae6ab449e701ce881.js",
"/js/frontend.js": "/js/frontend.d3a9d9963b6da237bfe8.js",
"/js/backend.js": "/js/backend.51a14fd841ccd198e500.js",
"/mix.js": "/mix.247ab120fe7680658924.js",
"/css/frontend.css": "/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css",
"/css/backend.css": "/css/backend.f8550f50504e5b8ef6055285205f223a.css",
"/css/backend-custom.css": "/css/backend-custom.50f14193ab908e3cf471dea6cb6616ae.css",
"/js/backend-custom.js": "/js/backend-custom.694670b0d97bf54111bac3bd91ba3fcf.js",
"/js/backend-custom.js": "/js/backend-custom.69e7d487a5a38a38520a62a5c53584f9.js",
"/js/dataTable.js": "/js/dataTable.f968d300a6a0b871f138f114361259c8.js"
}

0 comments on commit 680a941

Please sign in to comment.