mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
In case of PAM, change user save logic.
This commit is contained in:
parent
e20fd652ef
commit
7e7d810ea0
10
src/elogd.c
10
src/elogd.c
@ -27717,6 +27717,16 @@ void interprete(char *lbook, char *path)
|
|||||||
return;
|
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 password file given, check session ID */
|
||||||
if (getcfg(lbs->name, "Password file", str, sizeof(str))) {
|
if (getcfg(lbs->name, "Password file", str, sizeof(str))) {
|
||||||
/* get current CSS */
|
/* get current CSS */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user