Commit 65d3b71d authored by Ondrej Holy's avatar Ondrej Holy

user-accounts: Fix password dialog hangs

On Fedora 31, the "Current Password: " prompt is printed by passwd,
when I enter my current password wrongly. It is not clear to me why
and I don't know how to debug the PAM stack, but it causes that the
checkmark for the old password field is not reliable and what is worse
it causes the dialog hangs when it is submitted. Let's add check for
the "urrent" keyword to fix this issue.

Fixes: #766
parent ea22446a
Pipeline #130597 passed with stages
in 5 minutes and 31 seconds
......@@ -404,7 +404,9 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswdHandler *pass
if (is_string_complete (str->str, "assword: ", "failure", "wrong", "error", NULL)) {
if (strstr (str->str, "assword: ") != NULL && strstr (str->str, "incorrect") == NULL) {
if (strstr (str->str, "assword: ") != NULL &&
strstr (str->str, "incorrect") == NULL &&
strstr (str->str, "urrent") == NULL) {
/* Authentication successful */
passwd_handler->backend_state = PASSWD_STATE_NEW;
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