user

package
v0.9.99 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 Action

func Action(ctx *context.Context)

func Activate

func Activate(ctx *context.Context)

func ActivateEmail

func ActivateEmail(ctx *context.Context)

func AutoSignIn

func AutoSignIn(ctx *context.Context) (bool, error)

AutoSignIn reads cookie and try to auto-login.

func Dashboard

func Dashboard(ctx *context.Context)

func DeleteEmail

func DeleteEmail(ctx *context.Context)

func DeleteSSHKey

func DeleteSSHKey(ctx *context.Context)

func Email2User

func Email2User(ctx *context.Context)

func Followers

func Followers(ctx *context.Context)

func Following

func Following(ctx *context.Context)

func ForgotPasswd

func ForgotPasswd(ctx *context.Context)

func ForgotPasswdPost

func ForgotPasswdPost(ctx *context.Context)

func GetUserByName

func GetUserByName(ctx *context.Context, name string) *models.User

func GetUserByParams

func GetUserByParams(ctx *context.Context) *models.User

GetUserByParams returns user whose name is presented in URL paramenter.

func Issues

func Issues(ctx *context.Context)

func Profile

func Profile(ctx *context.Context)

func ResetPasswd

func ResetPasswd(ctx *context.Context)

func ResetPasswdPost

func ResetPasswdPost(ctx *context.Context)

func Settings

func Settings(ctx *context.Context)

func SettingsApplications

func SettingsApplications(ctx *context.Context)

func SettingsApplicationsPost

func SettingsApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm)

func SettingsAvatar

func SettingsAvatar(ctx *context.Context)

func SettingsAvatarPost

func SettingsAvatarPost(ctx *context.Context, form auth.AvatarForm)

func SettingsDelete

func SettingsDelete(ctx *context.Context)

func SettingsDeleteApplication

func SettingsDeleteApplication(ctx *context.Context)

func SettingsDeleteAvatar

func SettingsDeleteAvatar(ctx *context.Context)

func SettingsEmailPost

func SettingsEmailPost(ctx *context.Context, form auth.AddEmailForm)

func SettingsEmails

func SettingsEmails(ctx *context.Context)

func SettingsPassword

func SettingsPassword(ctx *context.Context)

func SettingsPasswordPost

func SettingsPasswordPost(ctx *context.Context, form auth.ChangePasswordForm)

func SettingsPost

func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm)

func SettingsSSHKeys

func SettingsSSHKeys(ctx *context.Context)

func SettingsSSHKeysPost

func SettingsSSHKeysPost(ctx *context.Context, form auth.AddSSHKeyForm)

func ShowSSHKeys

func ShowSSHKeys(ctx *context.Context, uid int64)

func SignIn

func SignIn(ctx *context.Context)

func SignInPost

func SignInPost(ctx *context.Context, form auth.SignInForm)

func SignOut

func SignOut(ctx *context.Context)

func SignUp

func SignUp(ctx *context.Context)

func SignUpPost

func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterForm)

func Stars

func Stars(ctx *context.Context)

func UpdateAvatarSetting

func UpdateAvatarSetting(ctx *context.Context, form auth.AvatarForm, ctxUser *models.User) error

FIXME: limit size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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