mirror of
https://github.com/usememos/memos.git
synced 2025-10-20 11:17:25 +08:00
fix: incorrectly checking whether registration is allowed in the login v1 api (#2998)
fix: Incorrectly checking whether registration is allowed in the login interface, resulting in the inability to log in through apiv1
This commit is contained in:
parent
b0f52ade7a
commit
8d08cfe1c9
1 changed files with 0 additions and 3 deletions
|
@ -64,9 +64,6 @@ func (s *APIV1Service) SignIn(c echo.Context) error {
|
|||
if err != nil {
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find system setting").SetInternal(err)
|
||||
}
|
||||
if workspaceGeneralSetting.DisallowSignup {
|
||||
return echo.NewHTTPError(http.StatusUnauthorized, "signup is disabled").SetInternal(err)
|
||||
}
|
||||
if workspaceGeneralSetting.DisallowPasswordLogin {
|
||||
return echo.NewHTTPError(http.StatusUnauthorized, "password login is deactivated").SetInternal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue