Commit 5e98c0d3 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

SmtpJob: use the password from the KPasswordDialog

If the code goes through the if block, then we need to update the passwd
var with the password we get from the KPasswordDialog.
parent 347f739b
Pipeline #32007 passed with stage
in 17 minutes and 57 seconds
......@@ -268,11 +268,13 @@ void SmtpJob::startLoginJob()
// If dlg was Accepted, update passwd
passwd = transport()->password();
if (transport()->authenticationType() == Transport::EnumAuthenticationType::XOAUTH2) {
passwd = passwd.left(passwd.indexOf(QLatin1Char('\001')));
} else {
passwd = transport()->password();
switch (transport()->authenticationType()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment