mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-25 15:20:10 +08:00
19 lines
368 B
Go
19 lines
368 B
Go
package token
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
// Generate a URL token
|
|
func genToken(c *gin.Context) string {
|
|
return "token"
|
|
}
|
|
|
|
// Verify a URL token (Auto Delete)
|
|
func verifyToken(c *gin.Context, token string) bool {
|
|
return token == "token"
|
|
}
|
|
|
|
// Verify a URL token (Not Delete)
|
|
func verifyTokenND(c *gin.Context, token string) bool {
|
|
return token == "token"
|
|
}
|