Files
EdgeAdmin/internal/web/actions/default/logout/index.go
2020-07-22 22:19:39 +08:00

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