From 45dea363ec6d0f28a800ba8ac28e4612baff7a06 Mon Sep 17 00:00:00 2001 From: jack Date: Wed, 23 May 2018 11:21:16 +0800 Subject: [PATCH] changed route and controller name from verifyUser to verifyPhone --- app/Http/Controllers/AuthController.php | 2 +- routes/api.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index c1c126e..48d0639 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -68,7 +68,7 @@ class AuthController extends Controller * @param Request $request * @return \Illuminate\Http\JsonResponse */ - public function verifyUser(Request $request) + public function verifyPhone(Request $request) { $credentials = $request->only('phone', 'token'); diff --git a/routes/api.php b/routes/api.php index 705fcb7..3dced12 100644 --- a/routes/api.php +++ b/routes/api.php @@ -24,7 +24,7 @@ Route::post('password/reset', 'AuthController@reset'); Route::post('send-verification', 'AuthController@sendVerification'); -Route::post('verify', 'AuthController@verifyUser'); +Route::post('verify-phone', 'AuthController@verifyPhone'); Route::group(['middleware' => ['jwt.auth']], function() { Route::get('logout', 'AuthController@logout');