Mercurial > prosody-hg
comparison plugins/mod_admin_adhoc.lua @ 5205:f7ff48494c2b
Merge 0.9->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 07:16:45 +0500 |
| parents | ff0d0cd07c43 |
| children | 8602fffdd1df |
comparison
equal
deleted
inserted
replaced
| 5196:a63c4ad6cb36 | 5205:f7ff48494c2b |
|---|---|
| 210 else | 210 else |
| 211 return { status = "executing", actions = {"next", "complete", default = "complete"}, form = end_user_session_layout }, "executing"; | 211 return { status = "executing", actions = {"next", "complete", default = "complete"}, form = end_user_session_layout }, "executing"; |
| 212 end | 212 end |
| 213 end | 213 end |
| 214 | 214 |
| 215 local end_user_session_layout = dataforms_new{ | |
| 216 title = "Ending a User Session"; | |
| 217 instructions = "Fill out this form to end a user's session."; | |
| 218 | |
| 219 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/admin" }; | |
| 220 { name = "accountjids", type = "jid-multi", label = "The Jabber ID(s) for which to end sessions" }; | |
| 221 }; | |
| 222 | |
| 223 | |
| 224 function get_user_password_handler(self, data, state) | 215 function get_user_password_handler(self, data, state) |
| 225 local get_user_password_layout = dataforms_new{ | 216 local get_user_password_layout = dataforms_new{ |
| 226 title = "Getting User's Password"; | 217 title = "Getting User's Password"; |
| 227 instructions = "Fill out this form to get a user's password."; | 218 instructions = "Fill out this form to get a user's password."; |
| 228 | 219 |
