Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Account(ctx *context.Context)
 - func AccountPost(ctx *context.Context, form auth.ChangePasswordForm)
 - func Applications(ctx *context.Context)
 - func ApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm)
 - func AvatarPost(ctx *context.Context, form auth.AvatarForm)
 - func DeleteAccount(ctx *context.Context)
 - func DeleteAccountLink(ctx *context.Context)
 - func DeleteApplication(ctx *context.Context)
 - func DeleteAvatar(ctx *context.Context)
 - func DeleteEmail(ctx *context.Context)
 - func DeleteKey(ctx *context.Context)
 - func DeleteOpenID(ctx *context.Context)
 - func DisableTwoFactor(ctx *context.Context)
 - func EmailPost(ctx *context.Context, form auth.AddEmailForm)
 - func EnrollTwoFactor(ctx *context.Context)
 - func EnrollTwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm)
 - func Keys(ctx *context.Context)
 - func KeysPost(ctx *context.Context, form auth.AddKeyForm)
 - func OpenIDPost(ctx *context.Context, form auth.AddOpenIDForm)
 - func Organization(ctx *context.Context)
 - func Profile(ctx *context.Context)
 - func ProfilePost(ctx *context.Context, form auth.UpdateProfileForm)
 - func RegenerateScratchTwoFactor(ctx *context.Context)
 - func Repos(ctx *context.Context)
 - func Security(ctx *context.Context)
 - func ToggleOpenIDVisibility(ctx *context.Context)
 - func U2FDelete(ctx *context.Context, form auth.U2FDeleteForm)
 - func U2FRegister(ctx *context.Context, form auth.U2FRegistrationForm)
 - func U2FRegisterPost(ctx *context.Context, response u2f.RegisterResponse)
 - func UpdateAvatarSetting(ctx *context.Context, form auth.AvatarForm, ctxUser *models.User) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountPost ¶
func AccountPost(ctx *context.Context, form auth.ChangePasswordForm)
AccountPost response for change user's password
func Applications ¶
Applications render manage access token page
func ApplicationsPost ¶
func ApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm)
ApplicationsPost response for add user's access token
func AvatarPost ¶
func AvatarPost(ctx *context.Context, form auth.AvatarForm)
AvatarPost response for change user's avatar request
func DeleteAccount ¶
DeleteAccount render user suicide page and response for delete user himself
func DeleteAccountLink ¶
DeleteAccountLink delete a single account link
func DeleteApplication ¶
DeleteApplication response for delete user access token
func DeleteEmail ¶
DeleteEmail response for delete user's email
func DeleteOpenID ¶
DeleteOpenID response for delete user's openid
func DisableTwoFactor ¶
DisableTwoFactor deletes the user's 2FA settings.
func EmailPost ¶
func EmailPost(ctx *context.Context, form auth.AddEmailForm)
EmailPost response for change user's email
func EnrollTwoFactor ¶
EnrollTwoFactor shows the page where the user can enroll into 2FA.
func EnrollTwoFactorPost ¶
func EnrollTwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm)
EnrollTwoFactorPost handles enrolling the user into 2FA.
func KeysPost ¶
func KeysPost(ctx *context.Context, form auth.AddKeyForm)
KeysPost response for change user's SSH/GPG keys
func OpenIDPost ¶
func OpenIDPost(ctx *context.Context, form auth.AddOpenIDForm)
OpenIDPost response for change user's openid
func Organization ¶
Organization render all the organization of the user
func ProfilePost ¶
func ProfilePost(ctx *context.Context, form auth.UpdateProfileForm)
ProfilePost response for change user's profile
func RegenerateScratchTwoFactor ¶
RegenerateScratchTwoFactor regenerates the user's 2FA scratch code.
func ToggleOpenIDVisibility ¶
ToggleOpenIDVisibility response for toggle visibility of user's openid
func U2FDelete ¶
func U2FDelete(ctx *context.Context, form auth.U2FDeleteForm)
U2FDelete deletes an security key by id
func U2FRegister ¶
func U2FRegister(ctx *context.Context, form auth.U2FRegistrationForm)
U2FRegister initializes the u2f registration procedure
func U2FRegisterPost ¶
func U2FRegisterPost(ctx *context.Context, response u2f.RegisterResponse)
U2FRegisterPost receives the response of the security key
func UpdateAvatarSetting ¶
UpdateAvatarSetting update user's avatar FIXME: limit size.
Types ¶
This section is empty.