ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [incubator-ponymail] branch master updated: Google OAuth: Ask for profile claim as well, so we can get name of user
Date Fri, 26 Jul 2019 07:12:50 GMT
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 <humbedooh@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) {


Mime
View raw message