Browse Source

Allow connect directly from the profile without going through the login form

Jordi Boggiano 12 years ago
parent
commit
6cd2016261
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Resources/FOSUserBundle/views/Profile/show.html.twig

+ 1 - 1
app/Resources/FOSUserBundle/views/Profile/show.html.twig

@@ -8,7 +8,7 @@
         <p><a href="{{ path('fos_user_profile_edit') }}">Edit your information</a></p>
         <p><a href="{{ path('fos_user_change_password') }}">Change your password</a></p>
         {% if not user.githubId %}
-        <p><a href="{{ path('hwi_oauth_connect_service', {'service': 'github'}) }}">Connect your github account</a></p>
+        <p><a href="{{ hwi_oauth_login_url('github') }}">Connect your github account</a></p>
         {% endif %}
         <p><a href="{{ path('user_profile', {'name':app.user.username}) }}">View your public profile</a></p>