mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Make password recovery working with protected selection pages
SVN revision: 2197
This commit is contained in:
parent
21e9f04620
commit
ff262e0319
11
src/elogd.c
11
src/elogd.c
@ -8555,6 +8555,9 @@ BOOL change_pwd(LOGBOOK * lbs, char *user, char *pwd)
|
|||||||
char str[256], file_name[256];
|
char str[256], file_name[256];
|
||||||
PMXML_NODE node;
|
PMXML_NODE node;
|
||||||
|
|
||||||
|
if (lbs == NULL)
|
||||||
|
lbs = &lb_list[0];
|
||||||
|
|
||||||
if (!lbs->pwd_xml_tree)
|
if (!lbs->pwd_xml_tree)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
@ -25565,6 +25568,13 @@ void interprete(char *lbook, char *path)
|
|||||||
/* if no logbook given, display logbook selection page */
|
/* if no logbook given, display logbook selection page */
|
||||||
if (!logbook[0] && !path[0]) {
|
if (!logbook[0] && !path[0]) {
|
||||||
if (n > 1) {
|
if (n > 1) {
|
||||||
|
|
||||||
|
/* check for forgot password page */
|
||||||
|
if (strieq(command, loc("Forgot"))) {
|
||||||
|
show_forgot_pwd_page(NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
show_selection_page();
|
show_selection_page();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -26289,6 +26299,7 @@ void interprete(char *lbook, char *path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* check for forgot password page */
|
||||||
if (strieq(command, loc("Forgot"))) {
|
if (strieq(command, loc("Forgot"))) {
|
||||||
show_forgot_pwd_page(lbs);
|
show_forgot_pwd_page(lbs);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user