Exemple #1
0
func (this *UserAuth) createAuthToken(login string, ts int64, usertoken string, salt string) string {
	return util.MD5String(fmt.Sprint(salt, login, ts, usertoken, salt))
}
Exemple #2
0
func (this *UserAuth) GenerateUserToken(login string, pwd string, salt string) string {
	return util.MD5String(login + salt + pwd + salt)
}