mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Updated api error message, added webclient prefix
This commit is contained in:
parent
e35f445860
commit
0f3d199507
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Repp
|
|||
|
||||
if request.ip == ENV['webclient_ip']
|
||||
webclient_cert_name = ENV['webclient_cert_common_name'] || 'webclient'
|
||||
error! "#{message} #{webclient_cert_name}", 401 if webclient_cert_name != request_name
|
||||
error! "Webclient #{message} #{webclient_cert_name}", 401 if webclient_cert_name != request_name
|
||||
else
|
||||
error! "#{message} #{@current_user.username}", 401 if @current_user.username != request_name
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue