feat: multi-login(disable) fixed

This commit is contained in:
loveuer
2024-07-19 16:43:12 +08:00
parent 5c852fe559
commit dac1f65fc2
4 changed files with 114 additions and 0 deletions

View File

@ -37,6 +37,8 @@ func initApp(ctx context.Context) *nf.App {
api.Get("/auth/login", auth.NewAuth(), handler.AuthVerify)
api.Post("/auth/logout", auth.NewAuth(), oplog.NewOpLog(ctx), handler.AuthLogout)
api.Post("/update", auth.NewAuth(), handler.UserUpdate)
mng := api.Group("/manage")
mng.Use(auth.NewAuth(), privilege.Verify(
privilege.RelationAnd,