diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 769214d65..d3d426857 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -111,8 +111,7 @@ class AccountController < ApplicationController
user_params = params[:user] || {}
@user = User.new
@user.safe_attributes = user_params
- #这里判断
- if params[:identity] == "2"
+ if params[:identity] == "2" # 2 企业
@user.firstname = params[:enterprise_name]
@user.lastname = l(:field_enterprise)
end
@@ -132,16 +131,6 @@ class AccountController < ApplicationController
@user.login = params[:user][:login]
unless user_params[:identity_url].present? && user_params[:password].blank? && user_params[:password_confirmation].blank?
@user.password, @user.password_confirmation = user_params[:password], user_params[:password_confirmation]
- # system "htpasswd -mb "+@root_path+"user.passwd "+params[:user][:login]+" "+user_params[:password]
- # system "echo -e '\n"+params[:user][:login]+"-write:"+
- # " "+params[:user][:login]+"' >> "+@root_path+"group.passwd"
- # system "mkdir "+@root_path+"htdocs/"+params[:user][:login]
-#
- # system "echo -e 'Allow from all \n Order Deny,Allow \n "+
- # "
- <%= custom_field_tag_with_label :user, value %> -
- <% end %> - <%= call_hook(:view_my_account, :user => @user, :form => f) %> - - -- -
-<%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %> +<%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted_bak" %> <%= select_tag( 'user[mail_notification]', options_for_select( diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index dd912cfe6..8168060e5 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -244,7 +244,7 @@