mirror of
https://github.com/jech/galene.git
synced 2024-11-09 02:05: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"`
|
Group string `json:"group"`
|
||||||
Username *string `json:"username,omitempty"`
|
Username *string `json:"username,omitempty"`
|
||||||
Permissions []string `json:"permissions"`
|
Permissions []string `json:"permissions"`
|
||||||
Expires *time.Time `json:"expires"`
|
Expires *time.Time `json:"expires,omitempty"`
|
||||||
NotBefore *time.Time `json:"not-before,omitempty"`
|
NotBefore *time.Time `json:"not-before,omitempty"`
|
||||||
IssuedAt *time.Time `json:"issuedAt,omitempty"`
|
IssuedAt *time.Time `json:"issuedAt,omitempty"`
|
||||||
IssuedBy *string `json:"issuedBy,omitempty"`
|
IssuedBy *string `json:"issuedBy,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue