user

package
v0.0.0-...-c275005 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGIN                    = "user/auth/login"
	TWO_FACTOR               = "user/auth/two_factor"
	TWO_FACTOR_RECOVERY_CODE = "user/auth/two_factor_recovery_code"
	SIGNUP                   = "user/auth/signup"
	ACTIVATE                 = "user/auth/activate"
	FORGOT_PASSWORD          = "user/auth/forgot_passwd"
	RESET_PASSWORD           = "user/auth/reset_passwd"
)
View Source
const (
	SETTINGS_PROFILE      = "user/settings/profile"
	SETTINGS_AVATAR       = "user/settings/avatar"
	SETTINGS_AUTHPASSWORD = "user/settings/auth_password"
	SETTINGS_PASSWORD     = "user/settings/password"
	SETTINGS_EMAILS       = "user/settings/email"
	SETTINGS_DELETE       = "user/settings/delete"
	SETTINGS_CLIENT       = "user/settings/client"
)

Variables

This section is empty.

Functions

func AutoLogin

func AutoLogin(c *context.Context) (bool, error)

AutoLogin reads cookie and try to auto-login.

func Login

func Login(c *context.Context)

func LoginPost

func LoginPost(c *context.Context, f form.SignIn)

func LoginTwoFactor

func LoginTwoFactor(c *context.Context)

func LoginTwoFactorPost

func LoginTwoFactorPost(c *context.Context)

func LoginTwoFactorRecoveryCode

func LoginTwoFactorRecoveryCode(c *context.Context)

func LoginTwoFactorRecoveryCodePost

func LoginTwoFactorRecoveryCodePost(c *context.Context)

func Settings

func Settings(c *context.Context)

func SettingsAuthPassword

func SettingsAuthPassword(c *context.Context)

func SettingsAuthPasswordPost

func SettingsAuthPasswordPost(c *context.Context, f form.Empty)

func SettingsClient

func SettingsClient(c *context.Context)

func SettingsPassword

func SettingsPassword(c *context.Context)

func SettingsPasswordPost

func SettingsPasswordPost(c *context.Context, f form.ChangePassword)

func SettingsPost

func SettingsPost(c *context.Context, f form.UpdateProfile)

func SignOut

func SignOut(c *context.Context)

func SignUp

func SignUp(c *context.Context)

func SignUpPost

func SignUpPost(c *context.Context, cpt *captcha.Captcha, f form.Register)

Types

This section is empty.

Jump to

Keyboard shortcuts

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