mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Changed 'remember me...' text
SVN revision: 1834
This commit is contained in:
parent
c3973f6a8d
commit
878f3ebda2
14
src/elogd.c
14
src/elogd.c
@ -22281,7 +22281,19 @@ BOOL check_user_password(LOGBOOK * lbs, char *user, char *password, char *redir)
|
|||||||
rsprintf("<input type=checkbox name=remember value=1>\n");
|
rsprintf("<input type=checkbox name=remember value=1>\n");
|
||||||
else
|
else
|
||||||
rsprintf("<input type=checkbox checked name=remember value=1>\n");
|
rsprintf("<input type=checkbox checked name=remember value=1>\n");
|
||||||
rsprintf("%s</td></tr>\n", loc("Remember me on this computer"));
|
rsprintf("%s<br>\n", loc("Keep me logged in on this computer"));
|
||||||
|
|
||||||
|
if (atof(str) < 1)
|
||||||
|
rsprintf(loc("for the next %d minutes"), (int)(atof(str)*60));
|
||||||
|
else if (atof(str) == 1)
|
||||||
|
rsprintf(loc("for the next hour"));
|
||||||
|
else if (atof(str) <= 48)
|
||||||
|
rsprintf(loc("for the next %d hours"), (int)atof(str));
|
||||||
|
else
|
||||||
|
rsprintf(loc("for the next %d days"), (int)(atof(str)/24));
|
||||||
|
|
||||||
|
rsprintf(" or until I log out");
|
||||||
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user