user

package
v0.11.79 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGIN                    = "user/auth/login"
	TWO_FACTOR               = "user/auth/two_factor"
	TWO_FACTOR_RECOVERY_CODE = "user/auth/two_factor_recovery_code"
	SIGNUP                   = "user/auth/signup"
	ACTIVATE                 = "user/auth/activate"
	FORGOT_PASSWORD          = "user/auth/forgot_passwd"
	RESET_PASSWORD           = "user/auth/reset_passwd"
)
View Source
const (
	DASHBOARD = "user/dashboard/dashboard"
	NEWS_FEED = "user/dashboard/feeds"
	ISSUES    = "user/dashboard/issues"
	PROFILE   = "user/profile"
	ORG_HOME  = "org/home"
)
View Source
const (
	FOLLOWERS = "user/meta/followers"
	STARS     = "user/meta/stars"
)
View Source
const (
	SETTINGS_PROFILE                   = "user/settings/profile"
	SETTINGS_AVATAR                    = "user/settings/avatar"
	SETTINGS_PASSWORD                  = "user/settings/password"
	SETTINGS_EMAILS                    = "user/settings/email"
	SETTINGS_SSH_KEYS                  = "user/settings/sshkeys"
	SETTINGS_SECURITY                  = "user/settings/security"
	SETTINGS_TWO_FACTOR_ENABLE         = "user/settings/two_factor_enable"
	SETTINGS_TWO_FACTOR_RECOVERY_CODES = "user/settings/two_factor_recovery_codes"
	SETTINGS_REPOSITORIES              = "user/settings/repositories"
	SETTINGS_ORGANIZATIONS             = "user/settings/organizations"
	SETTINGS_APPLICATIONS              = "user/settings/applications"
	SETTINGS_DELETE                    = "user/settings/delete"
	NOTIFICATION                       = "user/notification"
)

Variables

This section is empty.

Functions

func Action

func Action(c *context.Context, puser *context.ParamsUser)

func Activate

func Activate(c *context.Context)

func ActivateEmail

func ActivateEmail(c *context.Context)

func AutoLogin

func AutoLogin(c *context.Context) (bool, error)

AutoLogin reads cookie and try to auto-login.

func Dashboard

func Dashboard(c *context.Context)

func DeleteEmail

func DeleteEmail(c *context.Context)

func DeleteSSHKey

func DeleteSSHKey(c *context.Context)

func Email2User

func Email2User(c *context.Context)

func Followers

func Followers(c *context.Context, puser *context.ParamsUser)

func Following

func Following(c *context.Context, puser *context.ParamsUser)

func ForgotPasswd

func ForgotPasswd(c *context.Context)

func ForgotPasswdPost

func ForgotPasswdPost(c *context.Context)

func Issues

func Issues(c *context.Context)

func Login

func Login(c *context.Context)

func LoginPost

func LoginPost(c *context.Context, f form.SignIn)

func LoginTwoFactor

func LoginTwoFactor(c *context.Context)

func LoginTwoFactorPost

func LoginTwoFactorPost(c *context.Context)

func LoginTwoFactorRecoveryCode

func LoginTwoFactorRecoveryCode(c *context.Context)

func LoginTwoFactorRecoveryCodePost

func LoginTwoFactorRecoveryCodePost(c *context.Context)

func Profile

func Profile(c *context.Context, puser *context.ParamsUser)

func ResetPasswd

func ResetPasswd(c *context.Context)

func ResetPasswdPost

func ResetPasswdPost(c *context.Context)

func Settings

func Settings(c *context.Context)

func SettingsApplications

func SettingsApplications(c *context.Context)

func SettingsApplicationsPost

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

func SettingsAvatar

func SettingsAvatar(c *context.Context)

func SettingsAvatarPost

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

func SettingsDelete

func SettingsDelete(c *context.Context)

func SettingsDeleteApplication

func SettingsDeleteApplication(c *context.Context)

func SettingsDeleteAvatar

func SettingsDeleteAvatar(c *context.Context)

func SettingsEmailPost

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

func SettingsEmails

func SettingsEmails(c *context.Context)

func SettingsLeaveOrganization

func SettingsLeaveOrganization(c *context.Context)

func SettingsLeaveRepo

func SettingsLeaveRepo(c *context.Context)

func SettingsOrganizations

func SettingsOrganizations(c *context.Context)

func SettingsPassword

func SettingsPassword(c *context.Context)

func SettingsPasswordPost

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

func SettingsPost

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

func SettingsRepos

func SettingsRepos(c *context.Context)

func SettingsSSHKeys

func SettingsSSHKeys(c *context.Context)

func SettingsSSHKeysPost

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

func SettingsSecurity

func SettingsSecurity(c *context.Context)

func SettingsTwoFactorDisable

func SettingsTwoFactorDisable(c *context.Context)

func SettingsTwoFactorEnable

func SettingsTwoFactorEnable(c *context.Context)

func SettingsTwoFactorEnablePost

func SettingsTwoFactorEnablePost(c *context.Context)

func SettingsTwoFactorRecoveryCodes

func SettingsTwoFactorRecoveryCodes(c *context.Context)

func SettingsTwoFactorRecoveryCodesPost

func SettingsTwoFactorRecoveryCodesPost(c *context.Context)

func ShowSSHKeys

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

func SignOut

func SignOut(c *context.Context)

func SignUp

func SignUp(c *context.Context)

func SignUpPost

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

func Stars

func Stars(c *context.Context)

func UpdateAvatarSetting

func UpdateAvatarSetting(c *context.Context, f form.Avatar, ctxUser *models.User) error

FIXME: limit upload size

Types

This section is empty.

Jump to

Keyboard shortcuts

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