Documentation ¶
Index ¶
- Variables
- func AddUserWithoutCheck(holeuser ATmodels.AuthUser)
- func ChangePassword(email_aes string, oldPassword string, newPassword string) (result bool)
- func GetRoleWhileLogin(email_aes string) (role string)
- func IsEmailActive(encrypted_email string) (IsActive bool)
- func IsEmailAndPasswordMatch(email string, pwd string) (isEmailAndPasswordMatch bool)
- func IsEmailRegistered(encrypted_email string) (IsRegistered bool)
- func IsVerifyCodeMatchToRegisterAccount(verifyCode string, email string) (IsMatch bool)
- func JoinHoleTime(email_aes string) (day int)
- func RemoveVerifyFromRedis(email string)
- func ResetUserPassword(email string, passwordHash string) (err error)
- func SendEmail(toEmail string, verifyCode string) (isfinished bool)
- func StoreEmailAndVerifyCodeInRedis(verifyCode string, email string)
- func VerifyEmailActive(encrypted_email string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Redis_client *redis.Client
For Redis services
Functions ¶
func AddUserWithoutCheck ¶
func ChangePassword ¶
func GetRoleWhileLogin ¶
func IsEmailActive ¶
encrypted_email is the cipher after encrypting email,pay attention to passing email with encryption
func IsEmailAndPasswordMatch ¶
Email is the chiper and pwd is plaintext which will be hashed in function
func IsEmailRegistered ¶
encrypted_email is the cipher after encrypting email,pay attention to passing email with encryption
func IsVerifyCodeMatchToRegisterAccount ¶
Check if verify code and user specified by email inputs are match
func JoinHoleTime ¶
func RemoveVerifyFromRedis ¶
func RemoveVerifyFromRedis(email string)
func ResetUserPassword ¶
func VerifyEmailActive ¶
func VerifyEmailActive(encrypted_email string)
encrypted_email is the cipher after encrypting email,pay attention to passing email with encryption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.