0904
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Copyright 2022 E99p1ant. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
"github.com/tamakyi/TamaBox/internal/context"
|
||||
)
|
||||
|
||||
func Logout(ctx context.Context) {
|
||||
ctx.Session.Flush()
|
||||
ctx.Redirect("/")
|
||||
}
|
||||
Reference in New Issue
Block a user