From bb4693ddfc154fe01f617a811fbc71af926b74d2 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 14 Aug 2022 15:41:21 +0530 Subject: [PATCH] feat: update email session endpoint --- app/controllers/api/account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index a4e69f916a..0e5237316f 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -496,7 +496,8 @@ App::patch('/v1/account/phone') $response->dynamic($user, Response::MODEL_USER); }); -App::post('/v1/account/sessions') +App::post('/v1/account/sessions/email') + ->alias('/v1/account/sessions/') ->desc('Create Email Session') ->groups(['api', 'account', 'auth']) ->label('event', 'users.[userId].sessions.[sessionId].create')