user

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TplActivate template path for activate user
	TplActivate base.TplName = "user/auth/activate"
)

Variables

This section is empty.

Functions

func Action

func Action(ctx *context.Context)

Action response for follow/unfollow user request

func Activate

func Activate(ctx *context.Context)

Activate render activate user page

func ActivateEmail

func ActivateEmail(ctx *context.Context)

ActivateEmail render the activate email page

func AutoSignIn

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

AutoSignIn reads cookie and try to auto-login.

func Dashboard

func Dashboard(ctx *context.Context)

Dashboard render the dashborad page

func DeleteEmail

func DeleteEmail(ctx *context.Context)

DeleteEmail response for delete user's email

func DeleteSSHKey

func DeleteSSHKey(ctx *context.Context)

DeleteSSHKey response for delete user's SSH key

func Email2User

func Email2User(ctx *context.Context)

Email2User show user page via email

func Followers

func Followers(ctx *context.Context)

Followers render user's followers page

func Following

func Following(ctx *context.Context)

Following render user's followering page

func ForgotPasswd

func ForgotPasswd(ctx *context.Context)

ForgotPasswd render the forget pasword page

func ForgotPasswdPost

func ForgotPasswdPost(ctx *context.Context)

ForgotPasswdPost response for forget password request

func GetUserByName

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

GetUserByName get user by name

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)

Issues render the user issues page

func Profile

func Profile(ctx *context.Context)

Profile render user's profile page

func ResetPasswd

func ResetPasswd(ctx *context.Context)

ResetPasswd render the reset password page

func ResetPasswdPost

func ResetPasswdPost(ctx *context.Context)

ResetPasswdPost response fro reset password request

func Settings

func Settings(ctx *context.Context)

Settings render user's profile page

func SettingsApplications

func SettingsApplications(ctx *context.Context)

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

func SettingsAvatar(ctx *context.Context)

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

func SettingsDelete(ctx *context.Context)

SettingsDelete render user suicide page and response for delete user himself

func SettingsDeleteApplication

func SettingsDeleteApplication(ctx *context.Context)

SettingsDeleteApplication response for delete user access token

func SettingsDeleteAvatar

func SettingsDeleteAvatar(ctx *context.Context)

SettingsDeleteAvatar render delete avatar page

func SettingsEmailPost

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

SettingsEmailPost response for change user's email

func SettingsEmails

func SettingsEmails(ctx *context.Context)

SettingsEmails render user's emails page

func SettingsPassword

func SettingsPassword(ctx *context.Context)

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

func SettingsSSHKeys(ctx *context.Context)

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

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

ShowSSHKeys output all the ssh keys of user by uid

func SignIn

func SignIn(ctx *context.Context)

SignIn render sign in page

func SignInPost

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

SignInPost response for sign in request

func SignOut

func SignOut(ctx *context.Context)

SignOut sign out from login status

func SignUp

func SignUp(ctx *context.Context)

SignUp render the register page

func SignUpPost

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

SignUpPost response for sign up information submission

func Stars

func Stars(ctx *context.Context)

Stars show repositories user starred

func UpdateAvatarSetting

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

UpdateAvatarSetting update user's avatar 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