mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Switched login page to POST method
SVN revision: 1393
This commit is contained in:
parent
dcb71de402
commit
7a8f18d021
38
src/elogd.c
38
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.677 2005/06/04 11:58:20 ritt
|
||||||
|
Switched login page to POST method
|
||||||
|
|
||||||
Revision 1.676 2005/06/04 10:55:08 ritt
|
Revision 1.676 2005/06/04 10:55:08 ritt
|
||||||
Only use letters in randomly generated recovery password
|
Only use letters in randomly generated recovery password
|
||||||
|
|
||||||
@ -8620,22 +8623,6 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
||||||
|
|
||||||
get_author(lbs, attrib, orig_author);
|
get_author(lbs, attrib, orig_author);
|
||||||
|
|
||||||
if (bedit) {
|
|
||||||
if (getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1) {
|
|
||||||
if (*getparam("full_name"))
|
|
||||||
strcpy(str, getparam("full_name"));
|
|
||||||
else
|
|
||||||
strcpy(str, loc("user"));
|
|
||||||
|
|
||||||
strcat(str, " ");
|
|
||||||
strcat(str, loc("on"));
|
|
||||||
strcat(str, " ");
|
|
||||||
strcat(str, rem_host);
|
|
||||||
|
|
||||||
el_lock_message(lbs, message_id, str);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8864,6 +8851,23 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* check for locking */
|
||||||
|
if (message_id && bedit && !breedit && !bupload) {
|
||||||
|
if (getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1) {
|
||||||
|
if (*getparam("full_name"))
|
||||||
|
strcpy(str, getparam("full_name"));
|
||||||
|
else
|
||||||
|
strcpy(str, loc("user"));
|
||||||
|
|
||||||
|
strcat(str, " ");
|
||||||
|
strcat(str, loc("on"));
|
||||||
|
strcat(str, " ");
|
||||||
|
strcat(str, rem_host);
|
||||||
|
|
||||||
|
el_lock_message(lbs, message_id, str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* remove attributes for replies */
|
/* remove attributes for replies */
|
||||||
if (breply) {
|
if (breply) {
|
||||||
getcfg(lbs->name, "Remove on reply", str, sizeof(str));
|
getcfg(lbs->name, "Remove on reply", str, sizeof(str));
|
||||||
@ -20446,7 +20450,7 @@ BOOL check_user_password(LOGBOOK * lbs, char *user, char *password, char *redir)
|
|||||||
/* set focus on name field */
|
/* set focus on name field */
|
||||||
rsprintf("<body OnLoad=\"document.form1.uname.focus();\">\n");
|
rsprintf("<body OnLoad=\"document.form1.uname.focus();\">\n");
|
||||||
|
|
||||||
rsprintf("<form name=form1 method=\"GET\" action=\"\">\n\n");
|
rsprintf("<form name=form1 method=\"POST\" action=\"./\" enctype=\"multipart/form-data\">\n\n");
|
||||||
|
|
||||||
/* define hidden fields for current destination */
|
/* define hidden fields for current destination */
|
||||||
rsprintf("<input type=hidden name=redir value=\"%s\">\n", redir);
|
rsprintf("<input type=hidden name=redir value=\"%s\">\n", redir);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user