Change message send to client
This commit is contained in:
parent
a33d734411
commit
f292f3d027
|
|
@ -40,7 +40,9 @@ func (client *Client) askViaMessage() {
|
||||||
m := xmpp.Message{From: jid.Domain, To: client.JID, Type: "normal"}
|
m := xmpp.Message{From: jid.Domain, To: client.JID, Type: "normal"}
|
||||||
|
|
||||||
m.Thread = xmpp.SessionID()
|
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}
|
m.Confir = &xmpp.Confirm{Id: client.Transaction, Method: client.Method, URL: client.Domain}
|
||||||
|
|
||||||
log.Printf("%sSenp message %v", LogInfo, m)
|
log.Printf("%sSenp message %v", LogInfo, m)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue