Software / code / prosody
Comparison
plugins/mod_admin_telnet.lua @ 8201:a0ad62a269df
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 28 Aug 2017 21:05:12 +0200 |
| parent | 8128:c14513401d65 |
| parent | 8192:4354f556c5db |
| child | 8591:0c322389f994 |
comparison
equal
deleted
inserted
replaced
| 8185:e89320b8a789 | 8201:a0ad62a269df |
|---|---|
| 1065 if not hosts[host] then | 1065 if not hosts[host] then |
| 1066 return nil, "No such host: "..host; | 1066 return nil, "No such host: "..host; |
| 1067 elseif not um.user_exists(username, host) then | 1067 elseif not um.user_exists(username, host) then |
| 1068 return nil, "No such user"; | 1068 return nil, "No such user"; |
| 1069 end | 1069 end |
| 1070 local ok, err = um.set_password(username, password, host); | 1070 local ok, err = um.set_password(username, password, host, nil); |
| 1071 if ok then | 1071 if ok then |
| 1072 return true, "User password changed"; | 1072 return true, "User password changed"; |
| 1073 else | 1073 else |
| 1074 return nil, "Could not change password for user: "..err; | 1074 return nil, "Could not change password for user: "..err; |
| 1075 end | 1075 end |