home · contact · privacy
Fix variable name.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 26 May 2021 16:52:26 +0000 (18:52 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 26 May 2021 16:52:26 +0000 (18:52 +0200)
plomlombot.py

index 1128eff61c757451ac80968dd74a1becfb85eed2..0e02f1c6dd426b60a380e8cb14dd02b43e992424 100755 (executable)
@@ -490,7 +490,7 @@ class Session:
         self.io.send_line("USER " + username + " 0 * : ")
         if sasl:
             self.io.send_line("AUTHENTICATE PLAIN")
-            auth = username + '\0' + username + '\0' + password
+            auth = username + '\0' + username + '\0' + sasl
             auth_encoded = base64.b64encode(auth.encode()).decode().rstrip()
             self.io.send_line("AUTHENTICATE " + auth_encoded)
             self.io.send_line("CAP END")