On token verification failure return error, reason and stop processing.

This was broken with commit c1fb1a7def, which splits the result in order to print the error reason and in case of error was not returning the error and the message to prosody internals.
pull/2110/head jitsi-meet_2584
damencho 8 years ago
parent 5308f78c9a
commit 98111c3593
  1. 1
      resources/prosody-plugins/mod_auth_token.lua

@ -63,6 +63,7 @@ function provider.get_sasl_handler(session)
if (res == false) then
log("warn",
"Error verifying token err:%s, reason:%s", error, reason);
return res, error, reason;
end
local customUsername

Loading…
Cancel
Save