ALT Linux Bugzilla
– Attachment 19624 Details for
Bug 55640
[gnome-control-center] Добавить функционал смены пароля доменных пользователей
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
gnome-control-center-48.4-alt-password_change_support_for_domain_users.patch
gnome-control-center-48.4-alt-password_change_support_for_domain_users.patch (text/plain), 3.39 KB, created by
Semen Fomchenkov
on 2025-09-23 19:32:35 MSK
(
hide
)
Description:
gnome-control-center-48.4-alt-password_change_support_for_domain_users.patch
Filename:
MIME Type:
Creator:
Semen Fomchenkov
Created:
2025-09-23 19:32:35 MSK
Size:
3.39 KB
patch
obsolete
>--- a/panels/system/users/cc-password-dialog.c >+++ a/panels/system/users/cc-password-dialog.c >@@ -143,6 +143,13 @@ password_changed_cb (PasswdHandler *handler, > else { > primary_text = _("Password could not be changed"); > secondary_text = error->message; >+ >+ if (error->code == PASSWD_ERROR_CHANGE_FAILED) { >+ gtk_editable_set_text (GTK_EDITABLE (self->password_entry), ""); >+ gtk_widget_grab_focus (GTK_WIDGET (self->password_entry)); >+ >+ gtk_editable_set_text (GTK_EDITABLE (self->verify_entry), ""); >+ } > } > > dialog = adw_alert_dialog_new (primary_text, secondary_text); >--- a/panels/system/users/cc-user-page.c >+++ a/panels/system/users/cc-user-page.c >@@ -469,7 +469,7 @@ update_editable_state (CcUserPage *self) > self->avatar_editable = (is_current_user (self->user) || !self->locked); > g_object_notify (G_OBJECT (self), "avatar-editable"); > >- self->editable = self->avatar_editable && act_user_is_local_account (self->user); >+ self->editable = self->avatar_editable; > g_object_notify (G_OBJECT (self), "editable"); > } > >--- a/panels/system/users/run-passwd.c >+++ a/panels/system/users/run-passwd.c >@@ -440,6 +440,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswdHandler *pass > "match", > "1 numeric or special", > "failure", >+ "change failed", > "DIFFERENT", > "BAD PASSWORD", > NULL)) { >@@ -497,6 +498,9 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswdHandler *pass > else if (strstr (str->str, "DIFFERENT")) { > error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_REJECTED, > _("The new password does not contain enough different characters")); >+ } else if (strstr (str->str, "change failed") != NULL) { >+ error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_CHANGE_FAILED, >+ _("Password does not meet your organization's security policies. Try a different password or contact your system administrator.")); > } > else { > error = g_error_new (PASSWD_ERROR, PASSWD_ERROR_UNKNOWN, >--- a/panels/system/users/run-passwd.h >+++ a/panels/system/users/run-passwd.h >@@ -31,6 +31,7 @@ typedef void (*PasswdCallback) (PasswdHandler *passwd_handler, GError *error, co > /* Error codes */ > typedef enum { > PASSWD_ERROR_REJECTED, /* New password is not secure enough */ >+ PASSWD_ERROR_CHANGE_FAILED, /* Password can't be changed */ > PASSWD_ERROR_AUTH_FAILED, /* Wrong old password, or PAM failure */ > PASSWD_ERROR_REAUTH_FAILED, /* Password has changed since first authentication */ > PASSWD_ERROR_BACKEND, /* Backend error */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55640
:
19383
| 19624