mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed unitialized show_self_register
This commit is contained in:
parent
3c57d7838a
commit
ae0c989b0e
@ -26441,7 +26441,9 @@ void show_login_page(LOGBOOK * lbs, char *redir, int fail)
|
|||||||
show_forgot_link = (!getcfg(lbs->name, "allow password change", str, sizeof(str)) || atoi(str) == 1);
|
show_forgot_link = (!getcfg(lbs->name, "allow password change", str, sizeof(str)) || atoi(str) == 1);
|
||||||
#ifdef HAVE_PAM
|
#ifdef HAVE_PAM
|
||||||
getcfg(lbs->name, "Authentication", str, sizeof(str));
|
getcfg(lbs->name, "Authentication", str, sizeof(str));
|
||||||
if (!stristr(str, "PAM"))
|
if (stristr(str, "PAM"))
|
||||||
|
show_self_register = 0;
|
||||||
|
else
|
||||||
#endif /* HAVE_PAM */
|
#endif /* HAVE_PAM */
|
||||||
show_self_register = (getcfg(lbs->name, "Self register", str, sizeof(str)) && atoi(str) > 0);
|
show_self_register = (getcfg(lbs->name, "Self register", str, sizeof(str)) && atoi(str) > 0);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user