summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/sasl_plain.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/features/sasl_plain.py')
-rw-r--r--sleekxmpp/features/sasl_plain.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sleekxmpp/features/sasl_plain.py b/sleekxmpp/features/sasl_plain.py
index 36c7d9df..270d28fe 100644
--- a/sleekxmpp/features/sasl_plain.py
+++ b/sleekxmpp/features/sasl_plain.py
@@ -2,7 +2,6 @@ import base64
import sys
import logging
-from sleekxmpp.stanza.stream import sasl
from sleekxmpp.plugins.base import base_plugin
@@ -34,7 +33,7 @@ class sasl_plain(base_plugin):
auth = base64.b64encode(b'\x00' + user + \
b'\x00' + password).decode('utf-8')
- resp = sasl.Auth(self.xmpp)
+ resp = self.xmpp['feature_mechanisms'].stanza.Auth(self.xmpp)
resp['mechanism'] = 'PLAIN'
resp['value'] = auth
resp.send(now=True)