diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 0723cf169..a87df4fef 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -54,6 +54,7 @@ class MyController < ApplicationController @user.safe_attributes = params[:user] @user.pref.attributes = params[:pref] @user.pref[:no_self_notified] = (params[:no_self_notified] == '1') + @user.login = params[:login] unless @user.user_extensions.nil? if @user.user_extensions.identity == 2 @user.firstname = params[:enterprise_name] diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index c9390bcc3..805545659 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -55,20 +55,25 @@ + + +
+ <%= f.text_field :login, :required => true, :name => "login"%>
+ <%= l(:label_max_number) %>
+
+