Преглед на файлове

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.
j8
damencho преди 8 години
родител
ревизия
98111c3593
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1
    0
      resources/prosody-plugins/mod_auth_token.lua

+ 1
- 0
resources/prosody-plugins/mod_auth_token.lua Целия файл

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

Loading…
Отказ
Запис