Bläddra i källkod

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.
master
damencho 8 år sedan
förälder
incheckning
98111c3593
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      resources/prosody-plugins/mod_auth_token.lua

+ 1
- 0
resources/prosody-plugins/mod_auth_token.lua Visa fil

63
         if (res == false) then
63
         if (res == false) then
64
             log("warn",
64
             log("warn",
65
                 "Error verifying token err:%s, reason:%s", error, reason);
65
                 "Error verifying token err:%s, reason:%s", error, reason);
66
+            return res, error, reason;
66
         end
67
         end
67
 
68
 
68
         local customUsername
69
         local customUsername

Laddar…
Avbryt
Spara