sample users admin
This commit is contained in:
parent
19c24593fe
commit
0f520e67af
9 changed files with 488 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ package utils
|
|||
import (
|
||||
"crypto/md5"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
// generate a hashed string to be used as key for caching auth jwt token
|
||||
|
|
@ -17,3 +18,7 @@ func CreateAuthTokenHashedCacheKey(userID uint, userAgent string) string {
|
|||
|
||||
return hashedCacheKey
|
||||
}
|
||||
|
||||
func FormatUnix(value int64) string {
|
||||
return time.Unix(value, 0).Format("2006-01-02 15:04:05")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue