Commit 13dfe3f3 authored by Paul des Garets's avatar Paul des Garets

pas de vérification d'email

parent 9bfc3e8d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment