mirror of
https://github.com/usememos/memos.git
synced 2025-02-24 05:18:57 +08:00
chore: update allow sign up default value
This commit is contained in:
parent
089cd3de87
commit
7f7ddf77b8
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue