aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_hashed.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-04 01:26:26 +0200
committerKim Alvefur <zash@zash.se>2017-04-04 01:26:26 +0200
commit4234f60c4a8e19856674fa48f87f2feca80de33a (patch)
treeaa4ff19be9a9bc841320f411b677b661cc14f3fd /plugins/mod_auth_internal_hashed.lua
parent5386166909493c4850493128d24129877cea95eb (diff)
downloadprosody-4234f60c4a8e19856674fa48f87f2feca80de33a.tar.gz
prosody-4234f60c4a8e19856674fa48f87f2feca80de33a.zip
mod_auth_internal_hashed: Split long lines [luacheck]
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r--plugins/mod_auth_internal_hashed.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 3dfe90ad..53e345e5 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -101,7 +101,10 @@ function provider.create_user(username, password)
local valid, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, default_iteration_count);
local stored_key_hex = to_hex(stored_key);
local server_key_hex = to_hex(server_key);
- return accounts:set(username, {stored_key = stored_key_hex, server_key = server_key_hex, salt = salt, iteration_count = default_iteration_count});
+ return accounts:set(username, {
+ stored_key = stored_key_hex, server_key = server_key_hex,
+ salt = salt, iteration_count = default_iteration_count
+ });
end
function provider.delete_user(username)
@@ -122,7 +125,8 @@ function provider.get_sasl_handler()
if not credentials then return; end
end
- local stored_key, server_key, iteration_count, salt = credentials.stored_key, credentials.server_key, credentials.iteration_count, credentials.salt;
+ local stored_key, server_key = credentials.stored_key, credentials.server_key;
+ local iteration_count, salt = credentials.iteration_count, credentials.salt;
stored_key = stored_key and from_hex(stored_key);
server_key = server_key and from_hex(server_key);
return stored_key, server_key, iteration_count, salt, true;