Skip to content

Commit

Permalink
Dovecot lua auth: Fix encoding of payload
Browse files Browse the repository at this point in the history
  • Loading branch information
y3n4 committed Dec 2, 2024
1 parent 2cccd8f commit 4ad0a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/checkpasswd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function auth_password_verify(request, password)
}
http_request:add_header("Content-Type","application/json")
http_request:add_header("Authorization","Bearer " .. env_userli_token)
http_request:set_payload(string.format('{"password": "%s"}', password))
http_request:set_payload(json.encode({password = password}))
local http_response = http_request:submit()

if http_response:status() == 200 then
Expand Down

0 comments on commit 4ad0a22

Please sign in to comment.