refresh pam credentials after successful authentication
This commit is contained in:
parent
a99afe6a70
commit
c46a5197a2
2
pam.c
2
pam.c
@ -112,6 +112,8 @@ void run_pw_backend_child(void) {
|
|||||||
pw_buf = NULL;
|
pw_buf = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pam_setcred(auth_handle, PAM_REFRESH_CRED);
|
||||||
|
|
||||||
if (pam_end(auth_handle, pam_status) != PAM_SUCCESS) {
|
if (pam_end(auth_handle, pam_status) != PAM_SUCCESS) {
|
||||||
swaylock_log(LOG_ERROR, "pam_end failed");
|
swaylock_log(LOG_ERROR, "pam_end failed");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
Loading…
Reference in New Issue
Block a user