mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-29 04:04:29 +00:00
Fixed bug on login with guest access
SVN revision: 505
This commit is contained in:
parent
8c833b07ff
commit
6439297002
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.90 2003/04/23 08:58:20 midas
|
||||||
|
Fixed bug on login with guest access
|
||||||
|
|
||||||
Revision 1.89 2003/04/23 08:38:55 midas
|
Revision 1.89 2003/04/23 08:38:55 midas
|
||||||
Added warning if max. number of attachments reached
|
Added warning if max. number of attachments reached
|
||||||
|
|
||||||
@ -10944,7 +10947,7 @@ int i, n;
|
|||||||
|
|
||||||
if (isparam("wusr"))
|
if (isparam("wusr"))
|
||||||
{
|
{
|
||||||
sprintf(str, loc("Invalid user name <b>%s</b>"), getparam("wusr"));
|
sprintf(str, loc("Invalid user name <i>\"%s\"</i>"), getparam("wusr"));
|
||||||
rsprintf("<tr><td colspan=2 class=\"dlgerror\">%s!</td></tr>\n", str);
|
rsprintf("<tr><td colspan=2 class=\"dlgerror\">%s!</td></tr>\n", str);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11405,7 +11408,8 @@ FILE *f;
|
|||||||
strlcpy(css, str, sizeof(css));
|
strlcpy(css, str, sizeof(css));
|
||||||
|
|
||||||
/* check if guest access */
|
/* check if guest access */
|
||||||
if (getcfg(lbs->name, "Guest menu commands", str) && *getparam("unm") == 0)
|
if (getcfg(lbs->name, "Guest menu commands", str) && *getparam("unm") == 0 &&
|
||||||
|
!isparam("wpwd") && !isparam("wusr"))
|
||||||
logf("Guest access");
|
logf("Guest access");
|
||||||
else
|
else
|
||||||
if (strcmp(path, css) != 0)
|
if (strcmp(path, css) != 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user