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 ¶
View Source
const ( SIGNIN base.TplName = "user/auth/signin" SIGNUP base.TplName = "user/auth/signup" ACTIVATE base.TplName = "user/auth/activate" FORGOT_PASSWORD base.TplName = "user/auth/forgot_passwd" RESET_PASSWORD base.TplName = "user/auth/reset_passwd" )
View Source
const ( DASHBOARD base.TplName = "user/dashboard/dashboard" ISSUES base.TplName = "user/dashboard/issues" PROFILE base.TplName = "user/profile" ORG_HOME base.TplName = "org/home" )
View Source
const ( FOLLOWERS base.TplName = "user/meta/followers" STARS base.TplName = "user/meta/stars" )
View Source
const ( SETTINGS_PROFILE base.TplName = "user/settings/profile" SETTINGS_AVATAR base.TplName = "user/settings/avatar" SETTINGS_PASSWORD base.TplName = "user/settings/password" SETTINGS_EMAILS base.TplName = "user/settings/email" SETTINGS_SSH_KEYS base.TplName = "user/settings/sshkeys" SETTINGS_SOCIAL base.TplName = "user/settings/social" SETTINGS_APPLICATIONS base.TplName = "user/settings/applications" SETTINGS_DELETE base.TplName = "user/settings/delete" NOTIFICATION base.TplName = "user/notification" SECURITY base.TplName = "user/security" )
Variables ¶
This section is empty.
Functions ¶
func ActivateEmail ¶
func AutoSignIn ¶
AutoSignIn reads cookie and try to auto-login.
func DeleteEmail ¶
func DeleteSSHKey ¶
func Email2User ¶
func ForgotPasswd ¶
func ForgotPasswdPost ¶
func GetUserByParams ¶
GetUserByParams returns user whose name is presented in URL paramenter.
func ResetPasswd ¶
func ResetPasswdPost ¶
func SettingsApplications ¶
func SettingsApplicationsPost ¶
func SettingsApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm)
func SettingsAvatar ¶
func SettingsAvatarPost ¶
func SettingsAvatarPost(ctx *context.Context, form auth.AvatarForm)
func SettingsDelete ¶
func SettingsDeleteAvatar ¶
func SettingsEmailPost ¶
func SettingsEmailPost(ctx *context.Context, form auth.AddEmailForm)
func SettingsEmails ¶
func SettingsPassword ¶
func SettingsPasswordPost ¶
func SettingsPasswordPost(ctx *context.Context, form auth.ChangePasswordForm)
func SettingsPost ¶
func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm)
func SettingsSSHKeys ¶
func SettingsSSHKeysPost ¶
func SettingsSSHKeysPost(ctx *context.Context, form auth.AddSSHKeyForm)
func ShowSSHKeys ¶
func SignInPost ¶
func SignInPost(ctx *context.Context, form auth.SignInForm)
func SignUpPost ¶
func UpdateAvatarSetting ¶
FIXME: limit size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.