From 13dfe3f3e3af3f20f063b25b5ec6050cbe5a0f50 Mon Sep 17 00:00:00 2001 From: Paul des Garets <kiwi@via.ecp.fr> Date: Mon, 26 Jan 2015 02:57:28 +0100 Subject: [PATCH] =?UTF-8?q?pas=20de=20v=C3=A9rification=20d'email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/redmine_oauth_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/redmine_oauth_controller.rb b/app/controllers/redmine_oauth_controller.rb index 9f076b7..be1fd88 100644 --- a/app/controllers/redmine_oauth_controller.rb +++ b/app/controllers/redmine_oauth_controller.rb @@ -21,7 +21,7 @@ class RedmineOauthController < AccountController token = oauth_client.auth_code.get_token(params[:code], :redirect_uri => oauth_google_callback_url) result = token.get('https://dev.my.ecp.fr/testapi/who') info = JSON.parse(result.body) - if info && info["verified_email"] + if info if allowed_domain_for?(info["email"]) try_to_login info else -- GitLab