mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
add user-friendly error
This commit is contained in:
@@ -151,6 +151,8 @@ func startWebServer(c *cli.Context) error {
|
||||
|
||||
if config.EnableUserRegister {
|
||||
apiRoute.POST("/register.json", bindApi(api.Users.UserRegisterHandler))
|
||||
} else {
|
||||
apiRoute.POST("/register.json", bindApi(api.Users.UserRegistrationNotAllowed))
|
||||
}
|
||||
|
||||
apiRoute.GET("/logout.json", bindApi(api.Tokens.TokenRevokeCurrentHandler))
|
||||
|
||||
Reference in New Issue
Block a user