This commit is contained in:
Sasha Klizhentas 2016-10-26 15:54:26 -07:00
parent f10cdbeb90
commit bbd40bbe75
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ type User interface {
// Equals checks if user equals to another
Equals(other User) bool
// WebSessionInfo returns web session information
WebSessionInfo() interface{}
WebSessionInfo() User
}
// TeleportUser is an optional user entry in the database

View file

@ -412,7 +412,7 @@ type CreateSessionResponse struct {
// Token value
Token string `json:"token"`
// User represents the user
User interface{} `json:"user"`
User services.User `json:"user"`
// ExpiresIn sets seconds before this token is not valid
ExpiresIn int `json:"expires_in"`
}