cookie fix: being logged in on more Webs at once works now [Jaques Distler]
This commit is contained in:
parent
49032a99c6
commit
ad22579668
2 changed files with 3 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
- updated packaged sqlite3-ruby to 1.2.0
|
||||
|
||||
- FEATURES:
|
||||
- fix: being logged in on more Webs at once works now [Jaques Distler]
|
||||
- Stylesheet tweaks
|
||||
- visual display if webs are pass-protected (div background)
|
||||
- Linux packaging
|
||||
|
|
|
@ -75,7 +75,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def password_check(password)
|
||||
if password == @web.password
|
||||
cookies['web_address'] = password
|
||||
cookies[CGI.escape(@web_name)] = password
|
||||
true
|
||||
else
|
||||
false
|
||||
|
@ -183,7 +183,7 @@ class ApplicationController < ActionController::Base
|
|||
def authorized?
|
||||
@web.nil? or
|
||||
@web.password.nil? or
|
||||
cookies['web_address'] == @web.password or
|
||||
cookies[CGI.escape(@web_name)] == @web.password or
|
||||
password_check(@params['password'])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue