mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: sms login not verify captchar (#15995)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -356,6 +356,11 @@ func (h *AuthHandlers) doCredentialLogin(ctx context.Context, req *http.Request,
|
||||
// return nil, errors.Wrap(err, "processSsoLoginData")
|
||||
// }
|
||||
} else if body.Contains("verify_code") { // verify by mobile
|
||||
if h.preLoginHook != nil {
|
||||
if err = h.preLoginHook(ctx, req, body); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
verifyCode, _ := body.GetString("verify_code")
|
||||
uid, _ := body.GetString("uid")
|
||||
contactType, _ := body.GetString("contact_type")
|
||||
|
||||
Reference in New Issue
Block a user