mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 05:44:04 +08:00
chore: add uuid to token
This commit is contained in:
parent
6ebb36b2eb
commit
b1d563c874
@ -1,6 +1,7 @@
|
||||
package random
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"math/rand"
|
||||
"time"
|
||||
)
|
||||
@ -18,7 +19,7 @@ func String(n int) string {
|
||||
}
|
||||
|
||||
func Token() string {
|
||||
return String(64)
|
||||
return uuid.NewString() + String(64)
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user