Skip to content

Commit

Permalink
fix: fix /signup organization parameter issue (casdoor#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
sp71 authored Feb 3, 2024
1 parent 901867e commit 7d0eae2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func (c *ApiController) Signup() {
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())
if msg != "" {
c.ResponseError(msg)
Expand Down

0 comments on commit 7d0eae2

Please sign in to comment.