diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/core/token.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/core/token.go b/bridge/core/token.go index b9d68c0b..2ceabca2 100644 --- a/bridge/core/token.go +++ b/bridge/core/token.go @@ -55,7 +55,7 @@ func (t *Token) Validate() error { if t.Target == "" { return fmt.Errorf("missing target") } - if t.CreateTime.IsZero() { + if t.CreateTime.IsZero() || t.CreateTime.Equal(time.Time{}) { return fmt.Errorf("missing creation time") } if !TargetExist(t.Target) { |