diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index a4924ba98..6f822d2c3 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -50,28 +50,10 @@ class MyController < ApplicationController def account @user = User.current @pref = @user.pref - #Modified by young - unless @user.change_password_allowed? - flash[:error] = l(:notice_can_t_change_password) - redirect_to my_account_path - return - end - #Ended by young if request.post? @user.safe_attributes = params[:user] @user.pref.attributes = params[:pref] @user.pref[:no_self_notified] = (params[:no_self_notified] == '1') - #Added by young - if @user.check_password?(params[:password]) - @user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation] - if @user.save - flash[:notice] = l(:notice_account_password_updated) - # redirect_to my_account_path - end - else - flash[:error] = l(:notice_account_wrong_password) - end - #Ended by young if @user.save @user.pref.save @user.notified_project_ids = (@user.mail_notification == 'selected' ? params[:notified_project_ids] : []) diff --git a/app/views/repositories/_form_create.html.erb b/app/views/repositories/_form_create.html.erb index be3296704..9815db08b 100644 --- a/app/views/repositories/_form_create.html.erb +++ b/app/views/repositories/_form_create.html.erb @@ -22,7 +22,7 @@ border:none <% end %>
<%= f.check_box :is_default, :label => :field_repository_is_default %>
-<%= f.text_field :identifier, :required=>true, :disabled => @repository.identifier_frozen? %> +
<%= f.text_field :identifier, :required=>true, :disabled => @repository.identifier_frozen?, :label => l(:label_repository_name) %> <% unless @repository.identifier_frozen? %> <%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_repository_identifier_info).html_safe %> diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 6ae0cb553..799338dfb 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -137,7 +137,7 @@ software development and software crowdsourcing. -