fix: fix /signup organization parameter issue (#2669)

This commit is contained in:
Satinder Singh 2024-02-02 19:47:36 -08:00 committed by GitHub
parent 901867e8bb
commit 7d0eae230e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,11 @@ func (c *ApiController) Signup() {
return return
} }
if organization == nil {
c.ResponseError(fmt.Sprintf(c.T("auth:The organization: %s does not exist")), authForm.Organization)
return
}
msg := object.CheckUserSignup(application, organization, &authForm, c.GetAcceptLanguage()) msg := object.CheckUserSignup(application, organization, &authForm, c.GetAcceptLanguage())
if msg != "" { if msg != "" {
c.ResponseError(msg) c.ResponseError(msg)