feat: fix /signup parameter issue

This commit is contained in:
Yang Luo 2024-02-03 10:00:47 +08:00
parent b7be1943fa
commit 901867e8bb

View File

@ -93,6 +93,10 @@ func (c *ApiController) Signup() {
c.ResponseError(err.Error())
return
}
if application == nil {
c.ResponseError(fmt.Sprintf(c.T("auth:The application: %s does not exist")), authForm.Application)
return
}
if !application.EnableSignUp {
c.ResponseError(c.T("account:The application does not allow to sign up new account"))