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 Dashboard(ctx *context.Context)
- func DeleteEmail(ctx *context.Context)
- func DeleteSSHKey(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 GetUserByName(ctx *context.Context, name string) *models.User
- func GetUserByParams(ctx *context.Context) *models.User
- func Issues(ctx *context.Context)
- func Profile(ctx *context.Context)
- func ResetPasswd(ctx *context.Context)
- func ResetPasswdPost(ctx *context.Context)
- func Settings(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 SettingsDeleteApplication(ctx *context.Context)
- func SettingsDeleteAvatar(ctx *context.Context)
- func SettingsEmailPost(ctx *context.Context, form auth.AddEmailForm)
- func SettingsEmails(ctx *context.Context)
- func SettingsPassword(ctx *context.Context)
- func SettingsPasswordPost(ctx *context.Context, form auth.ChangePasswordForm)
- func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm)
- func SettingsSSHKeys(ctx *context.Context)
- func SettingsSSHKeysPost(ctx *context.Context, form auth.AddSSHKeyForm)
- func ShowSSHKeys(ctx *context.Context, uid int64)
- func SignIn(ctx *context.Context)
- 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 Stars(ctx *context.Context)
- 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 DeleteEmail ¶
DeleteEmail response for delete user's email
func DeleteSSHKey ¶
DeleteSSHKey response for delete user's SSH key
func ForgotPasswd ¶
ForgotPasswd render the forget pasword page
func ForgotPasswdPost ¶
ForgotPasswdPost response for forget password request
func GetUserByName ¶
GetUserByName get user by name
func GetUserByParams ¶
GetUserByParams returns user whose name is presented in URL paramenter.
func ResetPasswd ¶
ResetPasswd render the reset password page
func ResetPasswdPost ¶
ResetPasswdPost response fro reset password request
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 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 SettingsPassword ¶
SettingsPassword render change user's password page
func SettingsPasswordPost ¶
func SettingsPasswordPost(ctx *context.Context, form auth.ChangePasswordForm)
SettingsPasswordPost response for change user's password
func SettingsPost ¶
func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm)
SettingsPost response for change user's profile
func SettingsSSHKeys ¶
SettingsSSHKeys render user's SSH public keys page
func SettingsSSHKeysPost ¶
func SettingsSSHKeysPost(ctx *context.Context, form auth.AddSSHKeyForm)
SettingsSSHKeysPost response for change user's SSH keys
func ShowSSHKeys ¶
ShowSSHKeys output all the ssh keys of user by uid
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 UpdateAvatarSetting ¶
UpdateAvatarSetting update user's avatar FIXME: limit size.
Types ¶
This section is empty.