accounts

package
v0.0.0-...-6269356 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 26 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 is the controller type for the auth endpoints

func NewAuthController

func NewAuthController() *AuthController

NewAuthController creates a new instance of AuthController with injected services

func (*AuthController) ChangePassword

func (ctrl *AuthController) ChangePassword(ctx *gin.Context)

ChangePassword changes user's password. An authorized user is required to change password

func (*AuthController) ConfirmEmail

func (ctrl *AuthController) ConfirmEmail(ctx *gin.Context)

ConfirmEmail controller validates the payload and confirm the users email.

func (*AuthController) DeleteAccount

func (ctrl *AuthController) DeleteAccount(ctx *gin.Context)

DeleteAccount deletes user's account. An authorized user is required to delete account

func (*AuthController) Login

func (ctrl *AuthController) Login(ctx *gin.Context)

Login controller validates the payload and creates a new user.

func (*AuthController) RefreshJWT

func (ctrl *AuthController) RefreshJWT(ctx *gin.Context)

RefreshJWT controller returns a new access token given a valid refresh token.

func (*AuthController) Register

func (ctrl *AuthController) Register(ctx *gin.Context)

Register controller validates the payload and creates a new user. It hashes the password provided by the user. It also sends an email to verify the user's email address.

func (*AuthController) ResendVerificationToken

func (ctrl *AuthController) ResendVerificationToken(ctx *gin.Context)

ResendVerificationToken controller resends the verification token to the users email.

func (*AuthController) ResetPassword

func (ctrl *AuthController) ResetPassword(ctx *gin.Context)

ResetPassword resets user's password. A valid token is required to set new password

func (*AuthController) ResetPasswordToken

func (ctrl *AuthController) ResetPasswordToken(ctx *gin.Context)

ResetPasswordToken sends a reset password token to user's email

type ProfileController

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

ProfileController is a controller type for profile settings

func NewProfileController

func NewProfileController() *ProfileController

NewProfileController creates a new instance of ProfileController

func (*ProfileController) GetProviderProfile

func (ctrl *ProfileController) GetProviderProfile(ctx *gin.Context)

GetProviderProfile retrieves the provider profile

func (*ProfileController) GetSenderProfile

func (ctrl *ProfileController) GetSenderProfile(ctx *gin.Context)

GetSenderProfile retrieves the sender profile

func (*ProfileController) UpdateProviderProfile

func (ctrl *ProfileController) UpdateProviderProfile(ctx *gin.Context)

UpdateProviderProfile controller updates the provider profile

func (*ProfileController) UpdateSenderProfile

func (ctrl *ProfileController) UpdateSenderProfile(ctx *gin.Context)

UpdateSenderProfile controller updates the sender profile

Jump to

Keyboard shortcuts

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