Files
waf-platform/EdgeAdmin/internal/web/actions/default/logout/index.go

17 lines
292 B
Go

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("/")
}