Skip to content

Commit f9adec6

Browse files
committed
Basic Auth - update Picture
1 parent ca939d3 commit f9adec6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

auth/basic/basic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ func (o *Oauth2Basic) UserInfo(oauth2Token *oauth2.Token) (*model.User, error) {
182182
for i := 0; i < len(accounts); i++ {
183183
if accounts[i].Id == accounts[i].Parent {
184184
user.AccountID = accounts[i].Id
185+
user.Picture = accounts[i].Picture
185186
break
186187
}
187188
}

auth/oauth2oidc/oauth2oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func (o *Oauth2idc) UserInfo(oauth2Token *oauth2.Token) (*model.User, error) {
358358

359359
log.Infof("user.Sub: %s", user.Sub)
360360

361-
// apple and thus, auth0 sometimes does not provider an email address. these people cannot login.
361+
// apple and thus, auth0 sometimes does not provide an email address. these people cannot login.
362362
if user.Email == "" {
363363

364364
log.Errorf("email not found in user info, preventing user from logging in")

0 commit comments

Comments
 (0)