equal
deleted
inserted
replaced
206 return handle_status(session, "failure", "invalid-mechanism"); |
206 return handle_status(session, "failure", "invalid-mechanism"); |
207 end |
207 end |
208 local user_agent = auth:get_child("user-agent"); |
208 local user_agent = auth:get_child("user-agent"); |
209 if user_agent then |
209 if user_agent then |
210 session.client_id = user_agent.attr.id; |
210 session.client_id = user_agent.attr.id; |
|
211 sasl_handler.user_agent = { |
|
212 software = user_agent:get_child_text("software"); |
|
213 device = user_agent:get_child_text("device"); |
|
214 }; |
211 end |
215 end |
212 local initial = auth:get_child_text("initial-response"); |
216 local initial = auth:get_child_text("initial-response"); |
213 return process_cdata(session, initial); |
217 return process_cdata(session, initial); |
214 end); |
218 end); |
215 |
219 |