ses-proxy 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/web_panel.rb +2 -1
- data/template/ses-proxy.yml +7 -0
- metadata +1 -1
data/app/web_panel.rb
CHANGED
@@ -13,7 +13,8 @@ helpers do
|
|
13
13
|
|
14
14
|
def authorized?
|
15
15
|
@auth ||= Rack::Auth::Basic::Request.new(request.env)
|
16
|
-
|
16
|
+
available_users = SesProxy::Conf.get[:http_auth].map{|user| [user[:user],user[:password]]}
|
17
|
+
@auth.provided? && @auth.basic? && @auth.credentials && available_users.include?(@auth.credentials)
|
17
18
|
end
|
18
19
|
end
|
19
20
|
|
data/template/ses-proxy.yml
CHANGED