解决用户注册无地区、身份可注册成功
This commit is contained in:
parent
78343effaf
commit
387d482059
|
@ -140,6 +140,15 @@ class AccountController < ApplicationController
|
||||||
@user.password, @user.password_confirmation = user_params[:password], user_params[:password_confirmation]
|
@user.password, @user.password_confirmation = user_params[:password], user_params[:password_confirmation]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if(@cache_identityy == "")
|
||||||
|
flash.now[:error]= l(:label_identity)+l(:'activerecord.errors.messages.empty')
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if(@cache_city == "")
|
||||||
|
flash.now[:error]= l(:label_location)+l(:'activerecord.errors.messages.empty')
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
case Setting.self_registration
|
case Setting.self_registration
|
||||||
when '1'
|
when '1'
|
||||||
register_by_email_activation(@user)
|
register_by_email_activation(@user)
|
||||||
|
|
Loading…
Reference in New Issue