SA
Size: a a a
SA
A
SA
A
A
М
A
A
R
--- a/server/auth/google.js
+++ b/server/auth/google.js
@@ -39,10 +39,12 @@ router.get('google.callback', auth({ required: false }), async ctx => {
url: 'https://www.googleapis.com/oauth2/v1/userinfo',
});
- if (!profile.data.hd) {
- ctx.redirect('/?notice=google-hd');
- return;
+ // Hack to allow Gmail (non GSuite) accounts
+ if (!profile.data.hd) {
+ profile.data.hd = "teamname.com"
}
R
R
R
SA
A
R
🔪О
🔪О
🔪О
🔪О
🔪О