Skip to content

Commit d7e3eb1

Browse files
committed
[Next] cs_user.py: Switch from pam passwd to system-auth
1 parent 673dc2e commit d7e3eb1

File tree

1 file changed

+2
-2
lines changed
  • files/usr/share/cinnamon/cinnamon-settings/modules

1 file changed

+2
-2
lines changed

files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ def _on_show_password_toggled(self, widget):
375375
self.set_passwords_visibility()
376376

377377
def auth_pam(self):
378-
if not pam.pam().authenticate(GLib.get_user_name(), self.current_password.get_text(), 'passwd'):
378+
if not pam.pam().authenticate(GLib.get_user_name(), self.current_password.get_text(), 'system-auth'):
379379
raise PasswordError("Invalid password")
380380

381381
def auth_PyPAM(self):
382382
auth = PAM.pam()
383-
auth.start('passwd')
383+
auth.start('system-auth')
384384
auth.set_item(PAM.PAM_USER, GLib.get_user_name())
385385
auth.set_item(PAM.PAM_CONV, self.pam_conv)
386386
try:

0 commit comments

Comments
 (0)