AuthController
extends Controller
in package
Table of Contents
Methods
- auth() : RedirectResponse
- Authenticates the user with email and password.
- forgotPassword() : Response
- Handles the forgot password page rendering.
- login() : Response
- Handles the login page rendering.
- logout() : RedirectResponse
- Logs out the authenticated user and invalidates the session.
- resetPassword() : JsonResponse
- Resets the user's password using an OTP.
- sendOTP() : RedirectResponse|Response
- Sends an OTP to the user's phone number.
Methods
auth()
Authenticates the user with email and password.
public
auth(Request $request) : RedirectResponse
Parameters
- $request : Request
Return values
RedirectResponseforgotPassword()
Handles the forgot password page rendering.
public
forgotPassword() : Response
Return values
Responselogin()
Handles the login page rendering.
public
login() : Response
Return values
Responselogout()
Logs out the authenticated user and invalidates the session.
public
logout(Request $request) : RedirectResponse
Parameters
- $request : Request
Return values
RedirectResponseresetPassword()
Resets the user's password using an OTP.
public
resetPassword(Request $request) : JsonResponse
Parameters
- $request : Request
Return values
JsonResponsesendOTP()
Sends an OTP to the user's phone number.
public
sendOTP(Request $request) : RedirectResponse|Response
Parameters
- $request : Request