mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed bug in self registering
SVN revision: 1572
This commit is contained in:
parent
7f743e33b8
commit
eb4f08a2cd
@ -21022,6 +21022,9 @@ int do_self_register(LOGBOOK * lbs, char *command)
|
|||||||
{
|
{
|
||||||
char str[256];
|
char str[256];
|
||||||
|
|
||||||
|
if (command = NULL)
|
||||||
|
return 1;
|
||||||
|
|
||||||
/* display new user page if "self register" is clicked */
|
/* display new user page if "self register" is clicked */
|
||||||
if (strieq(command, loc("New user"))) {
|
if (strieq(command, loc("New user"))) {
|
||||||
show_new_user_page(lbs);
|
show_new_user_page(lbs);
|
||||||
@ -21395,7 +21398,7 @@ void interprete(char *lbook, char *path)
|
|||||||
|
|
||||||
/* check for self register */
|
/* check for self register */
|
||||||
if (getcfg(group, "Self register", str, sizeof(str)) && atoi(str) > 0) {
|
if (getcfg(group, "Self register", str, sizeof(str)) && atoi(str) > 0) {
|
||||||
if (!isparam("cmd") || !do_self_register(NULL, getparam("cmd")))
|
if (!do_self_register(NULL, getparam("cmd")))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user