Software /
code /
prosody
Comparison
plugins/mod_auth_internal_hashed.lua @ 3395:e736f68c1047
usermanager, mod_auth_internal_hashed, mod_legacyauth: New order of parameters for usermanager.test_password - username, host, password
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 21 Jul 2010 21:01:36 +0100 |
parent | 3389:9e2485880cd6 |
child | 3454:8cf30367aa4f |
comparison
equal
deleted
inserted
replaced
3394:9bf5f2b3314b | 3395:e736f68c1047 |
---|---|
139 local prepped_username = nodeprep(username); | 139 local prepped_username = nodeprep(username); |
140 if not prepped_username then | 140 if not prepped_username then |
141 log("debug", "NODEprep failed on username: %s", username); | 141 log("debug", "NODEprep failed on username: %s", username); |
142 return "", nil; | 142 return "", nil; |
143 end | 143 end |
144 return usermanager.test_password(prepped_username, password, realm), true; | 144 return usermanager.test_password(prepped_username, realm, password), true; |
145 end, | 145 end, |
146 scram_sha_1 = function(username, realm) | 146 scram_sha_1 = function(username, realm) |
147 local credentials = datamanager.load(username, host, "accounts"); | 147 local credentials = datamanager.load(username, host, "accounts"); |
148 if not credentials then return; end | 148 if not credentials then return; end |
149 if credentials.password then | 149 if credentials.password then |