Mercurial > prosody-hg
comparison plugins/mod_saslauth.lua @ 3350:f0e312c9da01
mod_saslauth: Rename variable 'aret' to 'ok' as per convention
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 12 Jul 2010 16:44:56 +0100 |
| parents | 9782a222e941 |
| children | a4bb658d3fcb |
comparison
equal
deleted
inserted
replaced
| 3349:a416d714a905 | 3350:f0e312c9da01 |
|---|---|
| 95 session.sasl_handler = session.sasl_handler:clean_clone(); | 95 session.sasl_handler = session.sasl_handler:clean_clone(); |
| 96 elseif status == "success" then | 96 elseif status == "success" then |
| 97 local username = nodeprep(session.sasl_handler.username); | 97 local username = nodeprep(session.sasl_handler.username); |
| 98 | 98 |
| 99 if not(require_provisioning) or usermanager_user_exists(username, session.host) then | 99 if not(require_provisioning) or usermanager_user_exists(username, session.host) then |
| 100 local aret, err = sm_make_authenticated(session, session.sasl_handler.username); | 100 local ok, err = sm_make_authenticated(session, session.sasl_handler.username); |
| 101 if aret then | 101 if ok then |
| 102 session.sasl_handler = nil; | 102 session.sasl_handler = nil; |
| 103 session:reset_stream(); | 103 session:reset_stream(); |
| 104 else | 104 else |
| 105 module:log("warn", "SASL succeeded but username was invalid"); | 105 module:log("warn", "SASL succeeded but username was invalid"); |
| 106 session.sasl_handler = session.sasl_handler:clean_clone(); | 106 session.sasl_handler = session.sasl_handler:clean_clone(); |
