In case of PAM, change user save logic.

This commit is contained in:
Jan Christoph Terasa
2019-02-19 14:34:39 +01:00
parent e20fd652ef
commit 7e7d810ea0
+10
View File
@@ -27717,6 +27717,16 @@ void interprete(char *lbook, char *path)
return;
}
#ifdef HAVE_PAM
/* save new user */
if (strieq(command, loc("Save")) && isparam("new_user_name") && !isparam("config")) {
save_user_config(NULL, getparam("new_user_name"), 1);
redirect(lbs, "");
check_login(lbs, NULL);
return;
}
#endif /* USE_PAM */
/* if password file given, check session ID */
if (getcfg(lbs->name, "Password file", str, sizeof(str))) {
/* get current CSS */