Software /
code /
prosody
Comparison
core/usermanager.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 23:00:42 +0500 |
parent | 3466:4add4f9ca409 |
child | 3608:ae0f83feaff4 |
comparison
equal
deleted
inserted
replaced
3539:8bbd965267b2 | 3540:bc139431830b |
---|---|
48 local provider = event.item; | 48 local provider = event.item; |
49 if host_session.users == provider then | 49 if host_session.users == provider then |
50 host_session.users = new_null_provider(); | 50 host_session.users = new_null_provider(); |
51 end | 51 end |
52 end); | 52 end); |
53 host_session.users = new_null_provider(); -- Start with the default usermanager provider | 53 host_session.users = new_null_provider(); -- Start with the default usermanager provider |
54 local auth_provider = config.get(host, "core", "authentication") or default_provider; | 54 local auth_provider = config.get(host, "core", "authentication") or default_provider; |
55 if auth_provider ~= "null" then | 55 if auth_provider ~= "null" then |
56 modulemanager.load(host, "auth_"..auth_provider); | 56 modulemanager.load(host, "auth_"..auth_provider); |
57 end | 57 end |
58 end; | 58 end; |
59 prosody.events.add_handler("host-activated", initialize_host, 100); | 59 prosody.events.add_handler("host-activated", initialize_host, 100); |
60 prosody.events.add_handler("component-activated", initialize_host, 100); | 60 prosody.events.add_handler("component-activated", initialize_host, 100); |
61 | 61 |
62 function test_password(username, host, password) | 62 function test_password(username, host, password) |