Comparison

plugins/mod_auth_internal_plain.lua @ 5780:bc3bf4ded7e4

mod_auth_internal_plain: Log a debug message when changing password to be consistent with the other methods
author Kim Alvefur <zash@zash.se>
date Sat, 10 Aug 2013 20:09:33 +0200
parent 5779:70bb0df1ffe7
child 5781:b374eb414a32
comparison
equal deleted inserted replaced
5779:70bb0df1ffe7 5780:bc3bf4ded7e4
33 log("debug", "get_password for username '%s'", username); 33 log("debug", "get_password for username '%s'", username);
34 return (accounts:get(username) or {}).password; 34 return (accounts:get(username) or {}).password;
35 end 35 end
36 36
37 function provider.set_password(username, password) 37 function provider.set_password(username, password)
38 log("debug", "set_password for username '%s'", username);
38 local account = accounts:get(username); 39 local account = accounts:get(username);
39 if account then 40 if account then
40 account.password = password; 41 account.password = password;
41 return accounts:set(username, account); 42 return accounts:set(username, account);
42 end 43 end