Software /
code /
prosody
Comparison
util/sasl/scram.lua @ 7217:0a43b7ffa3af
util.sasl.scram: Remove unused initial value [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Feb 2016 19:26:45 +0100 |
parent | 7216:65e36b81d56a |
child | 7218:6226307f6ac4 |
comparison
equal
deleted
inserted
replaced
7216:65e36b81d56a | 7217:0a43b7ffa3af |
---|---|
161 end | 161 end |
162 | 162 |
163 salt = generate_uuid(); | 163 salt = generate_uuid(); |
164 iteration_count = default_i; | 164 iteration_count = default_i; |
165 | 165 |
166 local succ = false; | 166 local succ; |
167 succ, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, iteration_count); | 167 succ, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, iteration_count); |
168 if not succ then | 168 if not succ then |
169 log("error", "Generating authentication database failed. Reason: %s", stored_key); | 169 log("error", "Generating authentication database failed. Reason: %s", stored_key); |
170 return "failure", "temporary-auth-failure"; | 170 return "failure", "temporary-auth-failure"; |
171 end | 171 end |