Documentation

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
RedirectResponse

forgotPassword()

Handles the forgot password page rendering.

public forgotPassword() : Response
Return values
Response

login()

Handles the login page rendering.

public login() : Response
Return values
Response

logout()

Logs out the authenticated user and invalidates the session.

public logout(Request $request) : RedirectResponse
Parameters
$request : Request
Return values
RedirectResponse

resetPassword()

Resets the user's password using an OTP.

public resetPassword(Request $request) : JsonResponse
Parameters
$request : Request
Return values
JsonResponse

sendOTP()

Sends an OTP to the user's phone number.

public sendOTP(Request $request) : RedirectResponse|Response
Parameters
$request : Request
Return values
RedirectResponse|Response

        
On this page

Search results