Add provider_id to cookie data

This commit is contained in:
Marcos Lilljedahl
2019-06-22 16:08:04 -03:00
parent cf25f7592a
commit 92299bdcbf
2 changed files with 2 additions and 1 deletions

View File

@@ -198,7 +198,7 @@ func LoginCallback(rw http.ResponseWriter, req *http.Request) {
return
}
cookieData := CookieID{Id: user.Id, UserName: user.Name, UserAvatar: user.Avatar}
cookieData := CookieID{Id: user.Id, UserName: user.Name, UserAvatar: user.Avatar, ProviderId: user.ProviderUserId}
host := "localhost"
if req.Host != "" {