# HG changeset patch # User Waqas Hussain # Date 1314815053 -18000 # Node ID 916834f22d1bc12831c5871c35154935c7252d48 # Parent 98b258b7d5dcf6bb18ed00239c9a0a0f157a18e6 util.sasl.scram: Return proper error and don't touch datastores on empty username. diff -r 98b258b7d5dc -r 916834f22d1b util/sasl/scram.lua --- a/util/sasl/scram.lua Tue Aug 30 17:51:36 2011 -0400 +++ b/util/sasl/scram.lua Wed Aug 31 23:24:13 2011 +0500 @@ -90,7 +90,7 @@ -- apply SASLprep username = saslprep(username); - return username; + return username and #username>0 and username; end local function hashprep(hashname)