Skip to content
Snippets Groups Projects
Verified Commit 808674de authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix cleanup of non-expiring mytokens

parent 5b94f52d
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@
- Fixed a bug in the mytoken webinterface where token introspection did not work on the settings page
- Fixed a bug in the mytoken webinterface restriction editor, where audiences would always be set to zero when switching
from the JSON editor to the GUI editor
- Fixed a bug where non-expiring mytokens would be revoked when database cleanup was enabled.
### Dependencies
......
......@@ -15,6 +15,9 @@ type UnixTime int64
// Time returns the UnixTime as time.Time
func (t UnixTime) Time() time.Time {
if t == 0 {
return time.Time{}
}
return time.Unix(int64(t), 0)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment