Documentation
¶
Index ¶
- func ChangeProfile(profile *model.Profile, uid string) error
- func CheckPasswordFormat(password string) bool
- func CheckToken(ctx *gin.Context, key, token string) bool
- func CheckVerifyCode(ctx *gin.Context, ticket, code, flag string) error
- func CreateUserAndProfile(email string, password string) error
- func DealWithFrozenImage(ctx *gin.Context, checkRes *model.CheckRes) error
- func GetProfileInfo(uid string) (*model.Profile, error)
- func GetProfileOrg(OrgId int) (string, string, error)
- func GetUserByGithubId(githubId string) (*model.User, error)
- func GetUserInfoFromGithub(username, githubId string) (*model.User, error)
- func Login(username string, password string) (string, error)
- func ModifyPassword(ctx *gin.Context, username, oldPassword, newPassword string) error
- func OauthUserInfo(userID string) (*model.User, error)
- func ResetPassword(username, newPassword string) error
- func SendEmail(ctx *gin.Context, username, ticket, title string) error
- func SentMsgToBot(checkRes *model.CheckRes) error
- func UpdateUserGitHubId(username, githubId string) error
- func UploadAvatar(avatar *multipart.FileHeader, uid string, ctx *gin.Context) (string, error)
- func UserInfo(ctx *gin.Context) (*model.User, error)
- func VerifyAccount(ctx *gin.Context, username, flag string) (string, error)
- func VerifyAccountLogin(ctx *gin.Context, username string) (string, error)
- func VerifyAccountRegister(ctx *gin.Context, username string) (string, error)
- func VerifyAccountResetPWD(ctx *gin.Context, username string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordFormat ¶
password can just contain ascii character
func CreateUserAndProfile ¶
func DealWithFrozenImage ¶
func GetUserInfoFromGithub ¶
func ModifyPassword ¶
func ResetPassword ¶
func SentMsgToBot ¶
func UpdateUserGitHubId ¶
func UploadAvatar ¶
func VerifyAccount ¶
In VerifyAccountRegister and VerifyAccountResetPWD, the username must be email In VerifyAccountLogin, the username can be email or uid
func VerifyAccountLogin ¶
This function is used to verify the user's email is exist or not when login This username is email or uid
func VerifyAccountRegister ¶
This function is used to verify the user's email is exist or not when register This username is email
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.