fix verification cache for redis-backed challenges
This commit is contained in:
@@ -667,7 +667,7 @@ func (a *audit) register(username, phone, password string) (string, string, erro
|
||||
}
|
||||
|
||||
func (a *audit) verificationCode(phone string) (string, error) {
|
||||
status, r, err := a.call("POST", "/v1/im/auth/verification-codes", map[string]any{"scene": "register", "phone": phone}, "")
|
||||
status, r, err := a.call("POST", "/v1/im/auth/verification-codes", map[string]any{"scene": "register", "registration_type": 1, "phone": phone}, "")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user