alist icon indicating copy to clipboard operation
alist copied to clipboard

请求为alist带来真正的登出

Open Luminet2023 opened this issue 1 year ago • 2 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure this feature is not implemented.
  • [X] I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

如题,alist当前的登出按钮仅仅是清除了前端的Authorization,而未将要登出的TOKEN进行销毁

Suggested solution / 实现思路

增加一个loginout接口,后端将登出的TOKEN标记为过期

Additional context / 附件

No response

Luminet2023 avatar Jul 15 '24 15:07 Luminet2023

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Jul 15 '24 15:07 welcome[bot]

如果不动,会有什么坏处吗?

woshichenghaibo avatar Jul 16 '24 12:07 woshichenghaibo

我看到有相应的接口的:

	Logout           = MainApi + "/user/logout"

jianboy avatar Jul 25 '24 16:07 jianboy

我看到有相应的接口的:

	Logout           = MainApi + "/user/logout"

你指的是drivers/123/util.go吗,这是存储驱动的logout,而不是Alist WebAPI的登出

Luminet2023 avatar Jul 26 '24 08:07 Luminet2023

目前在server/router.go上没有logout的接口

Luminet2023 avatar Jul 26 '24 08:07 Luminet2023