Mercurial > prosody-hg
comparison core/usermanager.lua @ 7179:bfa3b2ee384c
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 22 Feb 2016 15:24:20 +0100 |
| parents | 1295e14614f4 |
| children | 4354f556c5db |
comparison
equal
deleted
inserted
replaced
| 7171:91d36a37a9ff | 7179:bfa3b2ee384c |
|---|---|
| 79 local function set_password(username, password, host) | 79 local function set_password(username, password, host) |
| 80 return hosts[host].users.set_password(username, password); | 80 return hosts[host].users.set_password(username, password); |
| 81 end | 81 end |
| 82 | 82 |
| 83 local function user_exists(username, host) | 83 local function user_exists(username, host) |
| 84 if hosts[host].sessions[username] then return true; end | |
| 84 return hosts[host].users.user_exists(username); | 85 return hosts[host].users.user_exists(username); |
| 85 end | 86 end |
| 86 | 87 |
| 87 local function create_user(username, password, host) | 88 local function create_user(username, password, host) |
| 88 return hosts[host].users.create_user(username, password); | 89 return hosts[host].users.create_user(username, password); |
