user

package
v0.10.18 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: MIT Imports: 18 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_ORGANIZATIONS base.TplName = "user/settings/organizations"
	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 added in v0.8.25

func Action(ctx *context.Context)

func Activate

func Activate(ctx *context.Context)

func ActivateEmail added in v0.5.11

func ActivateEmail(ctx *context.Context)

func AutoSignIn added in v0.9.13

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

AutoSignIn reads cookie and try to auto-login.

func Dashboard

func Dashboard(ctx *context.Context)

func DeleteEmail added in v0.6.15

func DeleteEmail(ctx *context.Context)

func DeleteSSHKey added in v0.6.9

func DeleteSSHKey(ctx *context.Context)

func Email2User added in v0.3.0

func Email2User(ctx *context.Context)

func Followers added in v0.8.25

func Followers(ctx *context.Context)

func Following added in v0.8.25

func Following(ctx *context.Context)

func ForgotPasswd added in v0.3.0

func ForgotPasswd(ctx *context.Context)

func ForgotPasswdPost added in v0.3.0

func ForgotPasswdPost(ctx *context.Context)

func GetUserByName added in v0.8.25

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

func GetUserByParams added in v0.8.25

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 added in v0.3.0

func ResetPasswd(ctx *context.Context)

func ResetPasswdPost added in v0.3.0

func ResetPasswdPost(ctx *context.Context)

func Settings added in v0.5.0

func Settings(ctx *context.Context)

func SettingsApplications added in v0.5.8

func SettingsApplications(ctx *context.Context)

func SettingsApplicationsPost added in v0.5.8

func SettingsApplicationsPost(ctx *context.Context, f form.NewAccessToken)

func SettingsAvatar added in v0.5.9

func SettingsAvatar(ctx *context.Context)

func SettingsAvatarPost added in v0.9.71

func SettingsAvatarPost(ctx *context.Context, f form.Avatar)

func SettingsDelete added in v0.5.0

func SettingsDelete(ctx *context.Context)

func SettingsDeleteApplication added in v0.6.9

func SettingsDeleteApplication(ctx *context.Context)

func SettingsDeleteAvatar added in v0.9.0

func SettingsDeleteAvatar(ctx *context.Context)

func SettingsEmailPost added in v0.5.11

func SettingsEmailPost(ctx *context.Context, f form.AddEmail)

func SettingsEmails added in v0.5.11

func SettingsEmails(ctx *context.Context)

func SettingsLeaveOrganization added in v0.9.128

func SettingsLeaveOrganization(ctx *context.Context)

func SettingsOrganizations added in v0.9.128

func SettingsOrganizations(ctx *context.Context)

func SettingsPassword added in v0.5.0

func SettingsPassword(ctx *context.Context)

func SettingsPasswordPost added in v0.5.0

func SettingsPasswordPost(ctx *context.Context, f form.ChangePassword)

func SettingsPost added in v0.5.0

func SettingsPost(ctx *context.Context, f form.UpdateProfile)

func SettingsSSHKeys added in v0.5.0

func SettingsSSHKeys(ctx *context.Context)

func SettingsSSHKeysPost added in v0.5.0

func SettingsSSHKeysPost(ctx *context.Context, f form.AddSSHKey)

func ShowSSHKeys added in v0.5.9

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

func SignIn

func SignIn(ctx *context.Context)

func SignInPost added in v0.3.0

func SignInPost(ctx *context.Context, f form.SignIn)

func SignOut

func SignOut(ctx *context.Context)

func SignUp

func SignUp(ctx *context.Context)

func SignUpPost added in v0.3.0

func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, f form.Register)

func Stars

func Stars(ctx *context.Context)

func UpdateAvatarSetting added in v0.6.15

func UpdateAvatarSetting(ctx *context.Context, f form.Avatar, 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