ref: refs/heads/master
commit 1d238afb71e26d6a7620f936ec67f853e83c2fc7
Author: Stefan Schubert
Date: Tue Aug 11 09:41:41 2009 +0200
do not authent. if the host has not been selected
---
webclient/lib/authenticated_system.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/webclient/lib/authenticated_system.rb b/webclient/lib/authenticated_system.rb
index b1dbf61..628a346 100644
--- a/webclient/lib/authenticated_system.rb
+++ b/webclient/lib/authenticated_system.rb
@@ -100,6 +100,7 @@ module AuthenticatedSystem
# Called from #current_account. Now, attempt to login by basic authentication information.
def login_from_basic_auth
authenticate_with_http_basic do |username, password|
+ return false if session[:host].blank?
self.current_account = Account.authenticate(username, password, session[:host])
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org