# HG changeset patch # User Kim Alvefur # Date 1604922571 -3600 # Node ID a0ab7be0538dc5afb3301b01a617736a3a5f4008 # Parent c316ad1087d465bead807bfbb27325ddb94e2f36 mod_http_oauth2: Fix typo not caught by luacheck diff -r c316ad1087d4 -r a0ab7be0538d mod_http_oauth2/mod_http_oauth2.lua --- 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