diff options
| author | Oz Tiram <[email protected]> | 2024-08-04 21:43:53 +0200 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2025-09-08 20:54:05 +0000 |
| commit | 9fc83c5b22e5b4409ddfe31a36e8e42cc563499a (patch) | |
| tree | de12bf606853bf41d9d9c12f43793d94f77041ab /capplets | |
| parent | b5f6b8cf2d1976e34c20d37ab737545713174ede (diff) | |
| download | mate-control-center-9fc83c5b22e5b4409ddfe31a36e8e42cc563499a.tar.bz2 mate-control-center-9fc83c5b22e5b4409ddfe31a36e8e42cc563499a.tar.xz | |
fix: support change password with passwdqc
This one was quite tricky ... On systems where pam_passwdqc
is installed the prompt for password after succesfully authenticating
is not:
```
New password:
```
But:
```
Enter new password:
```
See:
https://github.com/openwall/passwdqc/blob/7bf266fcf6ce9782b73722664e36dabd68f48c48/pam_passwdqc.c#L64
passwdqc is installed by default in Gentoo, but might be also installed
in other Linux distributions.
Diffstat (limited to 'capplets')
| -rw-r--r-- | capplets/about-me/mate-about-me-password.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index 2b4f0441..6d739f6f 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -474,7 +474,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi /* Which response did we get? */ passdlg_set_busy (pdialog, FALSE); - if (g_strrstr (str->str, "New password: ") != NULL) { + if ((g_strrstr (str->str, "New password: ") != NULL) || (g_strrstr (str->str, "Enter new password: ") != NULL)) { /* Authentication successful */ authenticated_user (pdialog, FALSE); |
