Skip to content
Snippets Groups Projects
Commit 13dfe3f3 authored by Paul des Garets's avatar Paul des Garets
Browse files

pas de vérification d'email

parent 9bfc3e8d
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment