dev_haigong
cxt 6 years ago
parent ee630954d5
commit f7b95af92f

@ -1126,7 +1126,7 @@ class AccountController < ApplicationController
def bind_email_or_phone
@user = User.current
#begin
#ActiveRecord::Base.transaction do
ActiveRecord::Base.transaction do
if params[:type] == "phone"
@user.update_attributes!(:phone => params[:value])
reward_grade(@user, @user.id, 'Phone', 500)
@ -1135,7 +1135,7 @@ class AccountController < ApplicationController
Gitlab.client.edit_user_email(@user.gid, :email => @user.mail) if @user.gid
reward_grade(@user, @user.id, 'Mail', 500)
end
#end
end
#rescue
# raise ActiveRecord::Rollback
#end

Loading…
Cancel
Save