fix: phone number verification

This commit is contained in:
Lakhan Samani
2023-12-04 11:28:27 +05:30
parent 3fa892431e
commit e8b99f73c3
6 changed files with 61 additions and 20 deletions

View File

@@ -73,7 +73,7 @@ func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthR
}
isEmailSignup := email != ""
isMobileSignup := phoneNumber != ""
if isBasicAuthDisabled {
if isBasicAuthDisabled && isEmailSignup {
log.Debug("Basic authentication is disabled")
return res, fmt.Errorf(`basic authentication is disabled for this instance`)
}