changeset 2014:0694a2611bad

plugin XEP-0070: change message popup to be more user-friendly
author Geoffrey POUZET <chteufleur@kingpenguin.tk>
date Tue, 19 Jul 2016 21:25:22 +0200
parents b536dd121da1
children 20fb71b656e3
files src/plugins/plugin_xep_0070.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0070.py	Mon Jul 18 00:52:02 2016 +0200
+++ b/src/plugins/plugin_xep_0070.py	Tue Jul 19 21:25:22 2016 +0200
@@ -92,7 +92,10 @@
         self._dictRequest[client] = (auth_id, auth_method, auth_url, stanzaType, elt)
 
         confirm_ui = xml_tools.XMLUI("form", title=D_("Auth confirmation"), submit_id='')
-        confirm_ui.addText(D_("HTTP ({}) Authorization for {} (id: {}).".format(auth_method, auth_url, auth_id)))
+        confirm_ui.addText(D_("{} needs to validate your identity, do you agreeĀ ?".format(auth_url)))
+        confirm_ui.addText(D_("Validation code : {}".format(auth_id)))
+        confirm_ui.addText(D_("Please check that this code is the same as on {}".format(auth_url)))
+        confirm_ui.addText("")
         confirm_ui.addText(D_("Submit to authorize, cancel otherwise."))
         d = xml_tools.deferredUI(self.host, confirm_ui, chained=False)
         d.addCallback(self._authRequestCallback, client.profile)