Add LastLogin to the User API (#7196)

This commit is contained in:
zeripath authored and techknowlogick committed 2019-06-15 23:28:32 -04:00
1 parent 273f1997ff
commit cf2221e3ac
4 files changed
+19

No files matched your search

+2
View File
@@ -214,6 +214,8 @@ func (u *User) APIFormat() *api.User {
AvatarURL: u.AvatarLink(),
Language: u.Language,
IsAdmin: u.IsAdmin,
LastLogin: u.LastLoginUnix.AsTime(),
Created: u.CreatedUnix.AsTime(),
}
}