Fixed an incompatibility with 0.9 storages that showed up only when you would try to edit a web

This commit is contained in:
Alexey Verkhovsky 2005-04-08 04:31:48 +00:00
parent 029189d8e9
commit 1c40b5e570

View file

@ -15,7 +15,8 @@ module AbstractWikiService
attr_reader :webs, :system attr_reader :webs, :system
def authenticate(password) def authenticate(password)
password == (@system[:password] || 'instiki') # system['password'] variant is for compatibility with storages from older versions
password == (@system[:password] || @system['password'] || 'instiki')
end end
def create_web(name, address, password = nil) def create_web(name, address, password = nil)