You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2019/07/26 07:12:50 UTC
[incubator-ponymail] branch master updated: Google OAuth: Ask for
profile claim as well, so we can get name of user
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new f4957d2 Google OAuth: Ask for profile claim as well, so we can get name of user
f4957d2 is described below
commit f4957d21c5dab292dccad67db78b1a69163df5e9
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Jul 26 09:12:47 2019 +0200
Google OAuth: Ask for profile claim as well, so we can get name of user
---
site/js/oauth.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/js/oauth.js b/site/js/oauth.js
index c47b67f..ff7e10a 100644
--- a/site/js/oauth.js
+++ b/site/js/oauth.js
@@ -54,7 +54,7 @@ function oauthPortal(key) {
var state = parseInt(Math.random()*1000000000) + '' + parseInt(Math.random()*1000000000)
// google is different (as usual)
if (key == 'google') {
- location.href = ot.oauth_portal + "?state=" + state + "&client_id=" + (ot.client_id ? ot.client_id : "") + "&response_type=code&scope=email&redirect_uri=" + escape(window.location)
+ location.href = ot.oauth_portal + "?state=" + state + "&client_id=" + (ot.client_id ? ot.client_id : "") + "&response_type=code&scope=email+profile&redirect_uri=" + escape(window.location)
} else {
var cid = ""
if (ot.construct) {