diff --git a/controllers/account.go b/controllers/account.go index 7dde0493..cdaf83be 100644 --- a/controllers/account.go +++ b/controllers/account.go @@ -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"))