Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function storePassword( UserChangePasswordRequest $request )
- {
- $user = frontend_user();
- if($user && $user->enabled) {
- try {
- $this->interaction(UpdateFrontendUserPassword::class, [
- $this->guard()->getCognitoAccessToken(),
- $request
- ]);
- return AjaxResponse::success('success',[
- 'message' => __('Your Account settings were updated successfully.')
- ]);
- } catch (\Throwable $exception) {
- \Log::error( $exception );
- return AjaxResponse::error( 'error', [
- 'message' => __('There is a problem. Please try again.')
- ] );
- }
- }
- return AjaxResponse::error( 'error', [
- 'message' => __('There is a problem. Please try again.')
- ] );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement