refresh pam credentials after successful authentication

This commit is contained in:
Yaroslav 2020-07-13 03:12:20 +03:00 committed by Simon Ser
parent a99afe6a70
commit c46a5197a2

2
pam.c
View File

@ -112,6 +112,8 @@ void run_pw_backend_child(void) {
pw_buf = NULL;
}
pam_setcred(auth_handle, PAM_REFRESH_CRED);
if (pam_end(auth_handle, pam_status) != PAM_SUCCESS) {
swaylock_log(LOG_ERROR, "pam_end failed");
exit(EXIT_FAILURE);