fix: user: default lease is 1 year

Signed-off-by: zhihui.ding <danieldin186@gmail.com>
This commit is contained in:
zhihui.ding
2023-09-04 14:41:44 +08:00
parent b2ee3d9b2e
commit ed25f08483
4 changed files with 14 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ func NewUserSchema(u *User) schema.User {
}
func SchemaToUserModel(user *schema.User) *User {
lease, _ := libol.GetLocalTime(libol.LeaseTime, user.Lease)
lease, _ := libol.GetLeaseTime(user.Lease)
obj := &User{
Alias: user.Alias,
Password: user.Password,