Documentation ¶
Index ¶
- Constants
- func Action(ctx *context.Context)
- func Activate(ctx *context.Context)
- func ActivateEmail(ctx *context.Context)
- func AutoSignIn(ctx *context.Context) (bool, error)
- func ConnectOpenID(ctx *context.Context)
- func ConnectOpenIDPost(ctx *context.Context, form auth.ConnectOpenIDForm)
- func Dashboard(ctx *context.Context)
- func DeleteEmail(ctx *context.Context)
- func DeleteKey(ctx *context.Context)
- func DeleteOpenID(ctx *context.Context)
- func Email2User(ctx *context.Context)
- func Followers(ctx *context.Context)
- func Following(ctx *context.Context)
- func ForgotPasswd(ctx *context.Context)
- func ForgotPasswdPost(ctx *context.Context)
- func GetNotificationCount(c *context.Context)
- func GetUserByName(ctx *context.Context, name string) *models.User
- func GetUserByParams(ctx *context.Context) *models.User
- func Issues(ctx *context.Context)
- func LinkAccount(ctx *context.Context)
- func LinkAccountPostRegister(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterForm)
- func LinkAccountPostSignIn(ctx *context.Context, signInForm auth.SignInForm)
- func NotificationStatusPost(c *context.Context)
- func Notifications(c *context.Context)
- func Profile(ctx *context.Context)
- func RegisterOpenID(ctx *context.Context)
- func RegisterOpenIDPost(ctx *context.Context, cpt *captcha.Captcha, form auth.SignUpOpenIDForm)
- func ResetPasswd(ctx *context.Context)
- func ResetPasswdPost(ctx *context.Context)
- func Settings(ctx *context.Context)
- func SettingsAccountLinks(ctx *context.Context)
- func SettingsApplications(ctx *context.Context)
- func SettingsApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm)
- func SettingsAvatar(ctx *context.Context)
- func SettingsAvatarPost(ctx *context.Context, form auth.AvatarForm)
- func SettingsDelete(ctx *context.Context)
- func SettingsDeleteAccountLink(ctx *context.Context)
- func SettingsDeleteApplication(ctx *context.Context)
- func SettingsDeleteAvatar(ctx *context.Context)
- func SettingsEmailPost(ctx *context.Context, form auth.AddEmailForm)
- func SettingsEmails(ctx *context.Context)
- func SettingsKeys(ctx *context.Context)
- func SettingsKeysPost(ctx *context.Context, form auth.AddKeyForm)
- func SettingsOpenID(ctx *context.Context)
- func SettingsOpenIDPost(ctx *context.Context, form auth.AddOpenIDForm)
- func SettingsOrganization(ctx *context.Context)
- func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm)
- func SettingsRepos(ctx *context.Context)
- func SettingsSecurity(ctx *context.Context)
- func SettingsSecurityPost(ctx *context.Context, form auth.ChangePasswordForm)
- func SettingsTwoFactorDisable(ctx *context.Context)
- func SettingsTwoFactorEnroll(ctx *context.Context)
- func SettingsTwoFactorEnrollPost(ctx *context.Context, form auth.TwoFactorAuthForm)
- func SettingsTwoFactorRegenerateScratch(ctx *context.Context)
- func ShowSSHKeys(ctx *context.Context, uid int64)
- func SignIn(ctx *context.Context)
- func SignInOAuth(ctx *context.Context)
- func SignInOAuthCallback(ctx *context.Context)
- func SignInOpenID(ctx *context.Context)
- func SignInOpenIDPost(ctx *context.Context, form auth.SignInOpenIDForm)
- func SignInPost(ctx *context.Context, form auth.SignInForm)
- func SignOut(ctx *context.Context)
- func SignUp(ctx *context.Context)
- func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterForm)
- func ToggleOpenIDVisibility(ctx *context.Context)
- func TwoFactor(ctx *context.Context)
- func TwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm)
- func TwoFactorScratch(ctx *context.Context)
- func TwoFactorScratchPost(ctx *context.Context, form auth.TwoFactorScratchAuthForm)
- func UpdateAvatarSetting(ctx *context.Context, form auth.AvatarForm, ctxUser *models.User) error
Constants ¶
const ( // TplActivate template path for activate user TplActivate base.TplName = "user/auth/activate" )
Variables ¶
This section is empty.
Functions ¶
func ActivateEmail ¶
ActivateEmail render the activate email page
func AutoSignIn ¶
AutoSignIn reads cookie and try to auto-login.
func ConnectOpenID ¶ added in v1.2.0
ConnectOpenID shows a form to connect an OpenID URI to an existing account
func ConnectOpenIDPost ¶ added in v1.2.0
func ConnectOpenIDPost(ctx *context.Context, form auth.ConnectOpenIDForm)
ConnectOpenIDPost handles submission of a form to connect an OpenID URI to an existing account
func DeleteEmail ¶
DeleteEmail response for delete user's email
func DeleteOpenID ¶ added in v1.2.0
DeleteOpenID response for delete user's openid
func ForgotPasswd ¶
ForgotPasswd render the forget pasword page
func ForgotPasswdPost ¶
ForgotPasswdPost response for forget password request
func GetNotificationCount ¶ added in v1.1.0
GetNotificationCount is the middleware that sets the notification count in the context
func GetUserByName ¶
GetUserByName get user by name
func GetUserByParams ¶
GetUserByParams returns user whose name is presented in URL paramenter.
func LinkAccount ¶ added in v1.1.0
LinkAccount shows the page where the user can decide to login or create a new account
func LinkAccountPostRegister ¶ added in v1.1.0
LinkAccountPostRegister handle the creation of a new account for an external account using signUp
func LinkAccountPostSignIn ¶ added in v1.1.0
func LinkAccountPostSignIn(ctx *context.Context, signInForm auth.SignInForm)
LinkAccountPostSignIn handle the coupling of external account with another account using signIn
func NotificationStatusPost ¶ added in v1.1.0
NotificationStatusPost is a route for changing the status of a notification
func Notifications ¶ added in v1.1.0
Notifications is the notifications page
func RegisterOpenID ¶ added in v1.2.0
RegisterOpenID shows a form to create a new user authenticated via an OpenID URI
func RegisterOpenIDPost ¶ added in v1.2.0
RegisterOpenIDPost handles submission of a form to create a new user authenticated via an OpenID URI
func ResetPasswd ¶
ResetPasswd render the reset password page
func ResetPasswdPost ¶
ResetPasswdPost response from reset password request
func SettingsAccountLinks ¶ added in v1.1.0
SettingsAccountLinks render the account links settings page
func SettingsApplications ¶
SettingsApplications render user's access tokens page
func SettingsApplicationsPost ¶
func SettingsApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm)
SettingsApplicationsPost response for add user's access token
func SettingsAvatar ¶
SettingsAvatar render user avatar page
func SettingsAvatarPost ¶
func SettingsAvatarPost(ctx *context.Context, form auth.AvatarForm)
SettingsAvatarPost response for change user's avatar request
func SettingsDelete ¶
SettingsDelete render user suicide page and response for delete user himself
func SettingsDeleteAccountLink ¶ added in v1.1.0
SettingsDeleteAccountLink delete a single account link
func SettingsDeleteApplication ¶
SettingsDeleteApplication response for delete user access token
func SettingsDeleteAvatar ¶
SettingsDeleteAvatar render delete avatar page
func SettingsEmailPost ¶
func SettingsEmailPost(ctx *context.Context, form auth.AddEmailForm)
SettingsEmailPost response for change user's email
func SettingsEmails ¶
SettingsEmails render user's emails page
func SettingsKeys ¶ added in v1.2.0
SettingsKeys render user's SSH/GPG public keys page
func SettingsKeysPost ¶ added in v1.2.0
func SettingsKeysPost(ctx *context.Context, form auth.AddKeyForm)
SettingsKeysPost response for change user's SSH/GPG keys
func SettingsOpenID ¶ added in v1.2.0
SettingsOpenID renders change user's openid page
func SettingsOpenIDPost ¶ added in v1.2.0
func SettingsOpenIDPost(ctx *context.Context, form auth.AddOpenIDForm)
SettingsOpenIDPost response for change user's openid
func SettingsOrganization ¶ added in v1.2.0
SettingsOrganization render all the organization of the user
func SettingsPost ¶
func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm)
SettingsPost response for change user's profile
func SettingsRepos ¶ added in v1.3.0
SettingsRepos display a list of all repositories of the user
func SettingsSecurity ¶ added in v1.3.0
SettingsSecurity render change user's password page and 2FA
func SettingsSecurityPost ¶ added in v1.3.0
func SettingsSecurityPost(ctx *context.Context, form auth.ChangePasswordForm)
SettingsSecurityPost response for change user's password
func SettingsTwoFactorDisable ¶ added in v1.1.0
SettingsTwoFactorDisable deletes the user's 2FA settings.
func SettingsTwoFactorEnroll ¶ added in v1.1.0
SettingsTwoFactorEnroll shows the page where the user can enroll into 2FA.
func SettingsTwoFactorEnrollPost ¶ added in v1.1.0
func SettingsTwoFactorEnrollPost(ctx *context.Context, form auth.TwoFactorAuthForm)
SettingsTwoFactorEnrollPost handles enrolling the user into 2FA.
func SettingsTwoFactorRegenerateScratch ¶ added in v1.1.0
SettingsTwoFactorRegenerateScratch regenerates the user's 2FA scratch code.
func ShowSSHKeys ¶
ShowSSHKeys output all the ssh keys of user by uid
func SignInOAuth ¶ added in v1.1.0
SignInOAuth handles the OAuth2 login buttons
func SignInOAuthCallback ¶ added in v1.1.0
SignInOAuthCallback handles the callback from the given provider
func SignInOpenID ¶ added in v1.2.0
SignInOpenID render sign in page
func SignInOpenIDPost ¶ added in v1.2.0
func SignInOpenIDPost(ctx *context.Context, form auth.SignInOpenIDForm)
SignInOpenIDPost response for openid sign in request
func SignInPost ¶
func SignInPost(ctx *context.Context, form auth.SignInForm)
SignInPost response for sign in request
func SignUpPost ¶
SignUpPost response for sign up information submission
func ToggleOpenIDVisibility ¶ added in v1.2.0
ToggleOpenIDVisibility response for toggle visibility of user's openid
func TwoFactorPost ¶ added in v1.1.0
func TwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm)
TwoFactorPost validates a user's two-factor authentication token.
func TwoFactorScratch ¶ added in v1.1.0
TwoFactorScratch shows the scratch code form for two-factor authentication.
func TwoFactorScratchPost ¶ added in v1.1.0
func TwoFactorScratchPost(ctx *context.Context, form auth.TwoFactorScratchAuthForm)
TwoFactorScratchPost validates and invalidates a user's two-factor scratch token.
func UpdateAvatarSetting ¶
UpdateAvatarSetting update user's avatar FIXME: limit size.
Types ¶
This section is empty.