mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Add support of google signin
This commit is contained in:
parent
900141daff
commit
6405bb5056
10 changed files with 47 additions and 8 deletions
|
@ -76,6 +76,9 @@ module.exports = function (sequelize, DataTypes) {
|
|||
//no image api provided, use gravatar
|
||||
photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);
|
||||
break;
|
||||
case "google":
|
||||
photo = profile.photos[0].value.replace(/(\?sz=)\d*$/i, '$196');
|
||||
break;
|
||||
}
|
||||
return photo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue