Skip to content
Extraits de code Groupes Projets
Valider 8dea4b5f rédigé par Marco Colli's avatar Marco Colli
Parcourir les fichiers

Solve #5341

parent f775d74c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -23,9 +23,9 @@ class ServicesController < ApplicationController ...@@ -23,9 +23,9 @@ class ServicesController < ApplicationController
service = Service.initialize_from_omniauth( omniauth_hash ) service = Service.initialize_from_omniauth( omniauth_hash )
if current_user.services << service if current_user.services << service
current_user.update_profile_with_omniauth( service.info ) no_profile_image_before_update = no_profile_image?
current_user.update_profile_with_omniauth(service.info)
fetch_photo(service) if no_profile_image? fetch_photo(service) if no_profile_image_before_update
flash[:notice] = I18n.t 'services.create.success' flash[:notice] = I18n.t 'services.create.success'
else else
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter