add admins

This commit is contained in:
Umputun
2018-04-06 14:06:55 -05:00
parent 97d6041656
commit b8a3671ef9
7 changed files with 3 additions and 184 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func NewGoogle(p Params) Provider {
Profile: data.value("profile"),
}
if userInfo.Name == "" {
userInfo.Name = strings.Split(userInfo.ID, "@")[0]
userInfo.Name = strings.Split(data.value("email"), "@")[0]
}
return userInfo
},