diff mod_http_oauth2/mod_http_oauth2.lua @ 4237:a0ab7be0538d

mod_http_oauth2: Fix typo not caught by luacheck
author Kim Alvefur <zash@zash.se>
date Mon, 09 Nov 2020 12:49:31 +0100
parents 3eb595cf847f
children c4b9d4ba839b
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua	Fri Nov 06 11:17:30 2020 +0000
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Mon Nov 09 12:49:31 2020 +0100
@@ -32,7 +32,7 @@
 	local request_jid = assert(params.username, oauth_error("invalid_request", "missing 'username' (JID)"));
 	local request_password = assert(params.password, oauth_error("invalid_request", "missing 'password'"));
 	local request_username, request_host, request_resource = jid.prepped_split(request_jid);
-	if params.scope and param.scope ~= "" then
+	if params.scope and params.scope ~= "" then
 		return oauth_error("invalid_scope", "unknown scope requested");
 	end
 	if not (request_username and request_host) or request_host ~= module.host then