mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Separated epp login and epp request abilities #2742
This commit is contained in:
parent
598ab7ba63
commit
34f1d7d254
5 changed files with 83 additions and 61 deletions
|
@ -56,6 +56,15 @@ class Epp::SessionsController < EppController
|
|||
success = false
|
||||
end
|
||||
|
||||
if success && @api_user.cannot?(:create, :epp_login)
|
||||
epp_errors << {
|
||||
msg: 'Authentication error; server closing connection (API user does not have epp role)',
|
||||
code: '2501'
|
||||
}
|
||||
|
||||
success = false
|
||||
end
|
||||
|
||||
if success && !ip_white?
|
||||
epp_errors << {
|
||||
msg: 'Authentication error; server closing connection (IP is not whitelisted)',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue