Comparison

plugins/mod_legacyauth.lua @ 5776:bd0ff8ae98a8

Remove all trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Aug 2013 17:48:21 +0200
parent 5126:a0673b644f05
child 6302:76699a0ae4c4
comparison
equal deleted inserted replaced
5775:a6c2b8933507 5776:bd0ff8ae98a8
1 -- Prosody IM 1 -- Prosody IM
2 -- Copyright (C) 2008-2010 Matthew Wild 2 -- Copyright (C) 2008-2010 Matthew Wild
3 -- Copyright (C) 2008-2010 Waqas Hussain 3 -- Copyright (C) 2008-2010 Waqas Hussain
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 9
41 41
42 if secure_auth_only and not session.secure then 42 if secure_auth_only and not session.secure then
43 session.send(st.error_reply(stanza, "modify", "not-acceptable", "Encryption (SSL or TLS) is required to connect to this server")); 43 session.send(st.error_reply(stanza, "modify", "not-acceptable", "Encryption (SSL or TLS) is required to connect to this server"));
44 return true; 44 return true;
45 end 45 end
46 46
47 local username = stanza.tags[1]:child_with_name("username"); 47 local username = stanza.tags[1]:child_with_name("username");
48 local password = stanza.tags[1]:child_with_name("password"); 48 local password = stanza.tags[1]:child_with_name("password");
49 local resource = stanza.tags[1]:child_with_name("resource"); 49 local resource = stanza.tags[1]:child_with_name("resource");
50 if not (username and password and resource) then 50 if not (username and password and resource) then
51 local reply = st.reply(stanza); 51 local reply = st.reply(stanza);