From f292f3d02731ffa39bb1c5ef36f328d654409416 Mon Sep 17 00:00:00 2001 From: chteufleur Date: Wed, 13 Jul 2016 20:29:13 +0200 Subject: [PATCH] Change message send to client --- xmpp/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmpp/client.go b/xmpp/client.go index 1123bf3..5bf476d 100644 --- a/xmpp/client.go +++ b/xmpp/client.go @@ -40,7 +40,9 @@ func (client *Client) askViaMessage() { m := xmpp.Message{From: jid.Domain, To: client.JID, Type: "normal"} m.Thread = xmpp.SessionID() - m.Body = "Auth request for " + client.Domain + ".\nTransaction identifier is: " + client.Transaction + "\nReply to this message to confirm the request." + m.Body = "HTTP (" + client.Method + ") Authorization for " + client.Domain + " (id: " + client.Transaction + ")." + m.Body += "\nReply to this message to confirm the request." + m.Body += "\nIf your client doesn't support that functionnality, please send back the identifier to confirm the request." m.Confir = &xmpp.Confirm{Id: client.Transaction, Method: client.Method, URL: client.Domain} log.Printf("%sSenp message %v", LogInfo, m)