From 7f7ddf77b84fff2ae080e1a135c983fead9497c2 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 18 Nov 2023 12:51:07 +0800 Subject: [PATCH] chore: update allow sign up default value --- api/v1/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/auth.go b/api/v1/auth.go index acedd169..d10b9b30 100644 --- a/api/v1/auth.go +++ b/api/v1/auth.go @@ -197,7 +197,7 @@ func (s *APIV1Service) SignInSSO(c echo.Context) error { return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find system setting").SetInternal(err) } - allowSignUpSettingValue := false + allowSignUpSettingValue := true if allowSignUpSetting != nil { err = json.Unmarshal([]byte(allowSignUpSetting.Value), &allowSignUpSettingValue) if err != nil { @@ -333,7 +333,7 @@ func (s *APIV1Service) SignUp(c echo.Context) error { return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find system setting").SetInternal(err) } - allowSignUpSettingValue := false + allowSignUpSettingValue := true if allowSignUpSetting != nil { err = json.Unmarshal([]byte(allowSignUpSetting.Value), &allowSignUpSettingValue) if err != nil {