Mercurial Hosting > luan
diff lucene/src/luan/modules/lucene/Lucene.luan @ 753:5e3970ccd86a
improve password handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 Jul 2016 17:35:50 -0600 |
parents | 85f5444fb7d4 |
children | 1a101ac9ea46 |
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/Lucene.luan Fri Jul 15 16:18:22 2016 -0600 +++ b/lucene/src/luan/modules/lucene/Lucene.luan Fri Jul 15 17:35:50 2016 -0600 @@ -9,7 +9,6 @@ local String = require "luan:String.luan" local matches = String.matches or error() local Rpc = require "luan:Rpc.luan" -local Hosting = require "luan:host/Hosting.luan" local LuceneIndex = require "java:luan.modules.lucene.LuceneIndex" local NumberFieldParser = require "java:luan.modules.lucene.queryparser.NumberFieldParser" local StringFieldParser = require "java:luan.modules.lucene.queryparser.StringFieldParser" @@ -116,7 +115,7 @@ if Rpc.functions.backup == nil then function Rpc.functions.lucene_backup(password) - if Hosting.password ~= nil and Hosting.password ~= password then + if Io.password ~= password then error "wrong password" end local zip_file = uri("file:"..index.dir).parent().child("backup.zip")