mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-06 03:55:48 +08:00
阶段性提交
This commit is contained in:
16
internal/web/actions/default/logout/index.go
Normal file
16
internal/web/actions/default/logout/index.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package logout
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
||||
"github.com/iwind/TeaGo/actions"
|
||||
)
|
||||
|
||||
type IndexAction actions.Action
|
||||
|
||||
// 退出登录
|
||||
func (this *IndexAction) Run(params struct {
|
||||
Auth *helpers.UserShouldAuth
|
||||
}) {
|
||||
params.Auth.Logout()
|
||||
this.RedirectURL("/")
|
||||
}
|
||||
Reference in New Issue
Block a user