From ea7ca04f8aa04c631a6915825df705d54b72b37b Mon Sep 17 00:00:00 2001
From: Paul des Garets <paul.des-garets@student.ecp.fr>
Date: Sat, 9 Jul 2016 01:26:49 +0200
Subject: [PATCH] Update myecp path

---
 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 24dc906..47d8131 100644
--- a/app/controllers/redmine_oauth_controller.rb
+++ b/app/controllers/redmine_oauth_controller.rb
@@ -19,7 +19,7 @@ class RedmineOauthController < AccountController
       redirect_to signin_path
     else
       token = oauth_client.auth_code.get_token(params[:code], :redirect_uri => oauth_myecp_callback_url, :state => 'okok')
-      result = token.get('https://my.ecp.fr/m')
+      result = token.get('/api/v1/members/me')
       info = JSON.parse(result.body)
       if info
         allowed_domain = allowed_domain_for?(info["mail"])
-- 
GitLab