xmpp/sasl.go
changeset 153 bbd4166df95d
parent 150 fa7f6ff10c67
child 163 3f891f7fe817
equal deleted inserted replaced
152:69c5b4382e39 153:bbd4166df95d
    50 			cl.saslDigest2(srvMap)
    50 			cl.saslDigest2(srvMap)
    51 		}
    51 		}
    52 	case "failure":
    52 	case "failure":
    53 		Info.Log("SASL authentication failed")
    53 		Info.Log("SASL authentication failed")
    54 	case "success":
    54 	case "success":
       
    55 		cl.setStatus(StatusAuthenticated)
    55 		Info.Log("Sasl authentication succeeded")
    56 		Info.Log("Sasl authentication succeeded")
    56 		cl.Features = nil
    57 		cl.Features = nil
    57 		ss := &stream{To: cl.Jid.Domain, Version: XMPPVersion}
    58 		ss := &stream{To: cl.Jid.Domain, Version: XMPPVersion}
    58 		cl.sendXml <- ss
    59 		cl.sendXml <- ss
    59 	}
    60 	}