Changeset

8055:b08d9295f036

mod_auth_internal_hashed: Rename unused 'self' to _ [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 04 Apr 2017 01:26:09 +0200
parents 8054:0ba461b7d9af
children 8056:cacf14c218ab
files plugins/mod_auth_internal_hashed.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua	Tue Apr 04 01:25:33 2017 +0200
+++ b/plugins/mod_auth_internal_hashed.lua	Tue Apr 04 01:26:09 2017 +0200
@@ -110,10 +110,10 @@
 
 function provider.get_sasl_handler()
 	local testpass_authentication_profile = {
-		plain_test = function(sasl, username, password, realm)
+		plain_test = function(_, username, password, realm)
 			return usermanager.test_password(username, realm, password), true;
 		end,
-		scram_sha_1 = function(sasl, username, realm)
+		scram_sha_1 = function(_, username)
 			local credentials = accounts:get(username);
 			if not credentials then return; end
 			if credentials.password then