1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-14 22:47:21 +00:00

Add LastLogin to the User API (#7196)

This commit is contained in:
zeripath
2019-06-16 04:28:32 +01:00
committed by techknowlogick
parent 273f1997ff
commit cf2221e3ac
4 changed files with 19 additions and 0 deletions

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(),
}
}