Fixed bug im PAM authentication, thanks to SW

This commit is contained in:
Stefan Ritt 2025-06-02 21:06:34 +02:00
parent 30ada1df63
commit 3de9c8bd28

View File

@ -27565,7 +27565,7 @@ void interprete(char *lbook, const char *path)
#ifdef HAVE_PAM #ifdef HAVE_PAM
/* save new user */ /* save new user */
if (strieq(command, loc("Save")) && isparam("new_user_name") && !isparam("config")) { if (strieq(command, loc("Save")) && isparam("new_user_name") && !isparam("config")) {
save_user_config(NULL, getparam("new_user_name"), 1); save_user_config(lbs, getparam("new_user_name"), 1);
redirect(lbs, ""); redirect(lbs, "");
check_login(lbs, NULL); check_login(lbs, NULL);
return; return;