mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
fix rspec for mid without ip whitelist
This commit is contained in:
parent
06049cd22f
commit
af31230285
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ class Registrar
|
|||
return
|
||||
end
|
||||
|
||||
@user = find_user_by_idc_and_allowed(response.user_id_code)
|
||||
if Setting.registrar_ip_whitelist_enabled
|
||||
@user = find_user_by_idc_and_allowed(response.user_id_code)
|
||||
else
|
||||
@user = find_user_by_idc(response.user_id_code)
|
||||
end
|
||||
|
||||
if @user.persisted?
|
||||
session[:user_id_code] = response.user_id_code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue