Полная зачистка legacy + закрытие fix24.1/fix24.2 + обновление логотипа
This commit is contained in:
+2
-2
@@ -14,13 +14,13 @@ import (
|
||||
const TokenExpireDuration = time.Hour * 24
|
||||
|
||||
type MyClaims struct {
|
||||
AccountBo bo.AccountBo `json:"account"`
|
||||
Admin bo.AccountBo `json:"admin"`
|
||||
jwt.StandardClaims
|
||||
}
|
||||
|
||||
func GenToken(accountBo bo.AccountBo) (string, error) {
|
||||
c := MyClaims{
|
||||
AccountBo: accountBo,
|
||||
Admin: accountBo,
|
||||
StandardClaims: jwt.StandardClaims{
|
||||
ExpiresAt: time.Now().Add(TokenExpireDuration).Unix(),
|
||||
Issuer: "hy2xs-admin",
|
||||
|
||||
Reference in New Issue
Block a user