Mercurial > prosody-hg
comparison plugins/mod_legacyauth.lua @ 5084:82b9fe0c79c5
mod_legacyauth: Remove unused variable
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Aug 2012 17:01:07 +0200 |
| parents | 4629c60a303b |
| children | a0673b644f05 |
comparison
equal
deleted
inserted
replaced
| 5083:4629c60a303b | 5084:82b9fe0c79c5 |
|---|---|
| 55 :tag("resource"):up()); | 55 :tag("resource"):up()); |
| 56 else | 56 else |
| 57 username, password, resource = t_concat(username), t_concat(password), t_concat(resource); | 57 username, password, resource = t_concat(username), t_concat(password), t_concat(resource); |
| 58 username = nodeprep(username); | 58 username = nodeprep(username); |
| 59 resource = resourceprep(resource) | 59 resource = resourceprep(resource) |
| 60 local reply = st.reply(stanza); | |
| 61 if not (username and resource) then | 60 if not (username and resource) then |
| 62 session.send(st.error_reply(stanza, "modify", "bad-request")); | 61 session.send(st.error_reply(stanza, "modify", "bad-request")); |
| 63 return true; | 62 return true; |
| 64 end | 63 end |
| 65 if usermanager.test_password(username, session.host, password) then | 64 if usermanager.test_password(username, session.host, password) then |
