controllers

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	// contains filtered or unexported fields
}

AuthController handles authentication endpoints

func NewAuthController

func NewAuthController(authService *auth.AuthService) *AuthController

NewAuthController creates a new auth controller

func (*AuthController) Enable2FA

func (ac *AuthController) Enable2FA(c *fiber.Ctx) error

Enable2FA enables 2FA for the user

func (*AuthController) ForgotPassword

func (ac *AuthController) ForgotPassword(c *fiber.Ctx) error

ForgotPassword handles password reset request

func (*AuthController) Login

func (ac *AuthController) Login(c *fiber.Ctx) error

Login handles user login

func (*AuthController) Logout

func (ac *AuthController) Logout(c *fiber.Ctx) error

Logout handles user logout

func (*AuthController) Me

func (ac *AuthController) Me(c *fiber.Ctx) error

Me returns current user information

func (*AuthController) RefreshToken

func (ac *AuthController) RefreshToken(c *fiber.Ctx) error

RefreshToken handles token refresh

func (*AuthController) Register

func (ac *AuthController) Register(c *fiber.Ctx) error

Register handles user registration

func (*AuthController) ResetPassword

func (ac *AuthController) ResetPassword(c *fiber.Ctx) error

ResetPassword handles password reset

func (*AuthController) SendOTP

func (ac *AuthController) SendOTP(c *fiber.Ctx) error

SendOTP sends OTP to user's phone

func (*AuthController) Verify2FA

func (ac *AuthController) Verify2FA(c *fiber.Ctx) error

Verify2FA verifies 2FA code

func (*AuthController) VerifyOTP

func (ac *AuthController) VerifyOTP(c *fiber.Ctx) error

VerifyOTP verifies OTP code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL