// NewLoggedUser creates new user, updates last activity and updates login token

NewLoggedUser creates new user, updates last activity and updates login token
// NewLoggedUser creates new user updates last activity and updates login token
func NewLoggedUser(username string) *LoggedUser {
	res := &LoggedUser{User: User{UserName: username}}
	res.UpdateLastActivity(time.Now().UTC())
	res.UpdateLoginToken()
	return res
}
func NewLoggedUser ( username string ) * LoggedUser { res := & LoggedUser { User : User { UserName : username } } res . UpdateLastActivity ( time . Now ( ) . UTC ( ) ) res . UpdateLoginToken ( ) return res }
NewLoggedUser creates new user, updates last activity and updates login token
NewLoggedUser creates new user updates last activity and updates login token