Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 57:126b25079399
Fix setting resource before we even know what it is
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 04 Oct 2008 17:59:32 +0100 |
parent | 53:14ea0fe6ca86 |
child | 77:531b981f2d17 |
comparison
equal
deleted
inserted
replaced
56:70ab5a1e574c | 57:126b25079399 |
---|---|
64 session.conn.write(tostring(data)); | 64 session.conn.write(tostring(data)); |
65 end | 65 end |
66 | 66 |
67 function make_authenticated(session, username) | 67 function make_authenticated(session, username) |
68 session.username = username; | 68 session.username = username; |
69 session.resource = resource; | |
70 if session.type == "c2s_unauthed" then | 69 if session.type == "c2s_unauthed" then |
71 session.type = "c2s"; | 70 session.type = "c2s"; |
72 end | 71 end |
73 return true; | 72 return true; |
74 end | 73 end |