mirror of
https://github.com/jech/galene.git
synced 2024-11-08 17:55:59 +01:00
Omit token expiration if not provided.
A token with empty expiration is useless anyway.
This commit is contained in:
parent
bdee6286e6
commit
54b4759300
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ type Stateful struct {
|
|||
Group string `json:"group"`
|
||||
Username *string `json:"username,omitempty"`
|
||||
Permissions []string `json:"permissions"`
|
||||
Expires *time.Time `json:"expires"`
|
||||
Expires *time.Time `json:"expires,omitempty"`
|
||||
NotBefore *time.Time `json:"not-before,omitempty"`
|
||||
IssuedAt *time.Time `json:"issuedAt,omitempty"`
|
||||
IssuedBy *string `json:"issuedBy,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue