Rename auth struct field.
This commit is contained in:
parent
32df77187c
commit
6ccf6e41a8
|
|
@ -142,8 +142,7 @@ var authHandlers = []authHandler{
|
|||
}
|
||||
|
||||
func authenticatePlain(stream *Stream, user, password string) error {
|
||||
|
||||
auth := saslAuth{Mechanism: "PLAIN", Message: saslEncodePlain(user, password)}
|
||||
auth := saslAuth{Mechanism: "PLAIN", Text: saslEncodePlain(user, password)}
|
||||
if err := stream.Send(&auth); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -169,7 +168,7 @@ func authenticatePlain(stream *Stream, user, password string) error {
|
|||
type saslAuth struct {
|
||||
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-sasl auth"`
|
||||
Mechanism string `xml:"mechanism,attr"`
|
||||
Message string `xml:",chardata"`
|
||||
Text string `xml:",chardata"`
|
||||
}
|
||||
|
||||
func bindResource(stream *Stream, jid JID) (JID, error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue