diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 8e284bd480..e51d7da3b8 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -48,8 +48,19 @@ See docs/COPYRIGHT.rdoc for more details.
<%= @user.login %>
-
<%= f.text_field :firstname, required: true, container_class: '-middle' %>
- <%= f.text_field :lastname, required: true, container_class: '-middle' %>
+ <% login_via_provider = !!@user.identity_url %>
+
+ <%= f.text_field :firstname, required: true, container_class: '-middle', disabled: login_via_provider %>
+ <% if login_via_provider %>
+ <%= t('user.text_change_disabled_for_provider_login') %>
+ <% end %>
+
+
+ <%= f.text_field :lastname, required: true, container_class: '-middle', disabled: login_via_provider %>
+ <% if login_via_provider %>
+ <%= t('user.text_change_disabled_for_provider_login') %>
+ <% end %>
+
<%= f.text_field :mail, required: true, container_class: '-middle' %>
<%= fields_for :pref, @user.pref, builder: TabularFormBuilder, lang: current_language do |pref_fields| %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 33d7605b16..84ec8ffd5c 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2631,6 +2631,7 @@ en:
mail_self_notified: "I want to be notified of changes that I make myself"
status_user_and_brute_force: "%{user} and %{brute_force}"
status_change: "Status change"
+ text_change_disabled_for_provider_login: "The name is set by your login provider and can thus not be changed."
unlock: "Unlock"
unlock_and_reset_failed_logins: "Unlock and reset failed logins"