From 878f3ebda21ef6076c366bcfa037ccf1a337fb97 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 5 Apr 2007 08:13:02 +0000 Subject: [PATCH] Changed 'remember me...' text SVN revision: 1834 --- src/elogd.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index ee62e152..fc0a74f1 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -22281,7 +22281,19 @@ BOOL check_user_password(LOGBOOK * lbs, char *user, char *password, char *redir) rsprintf("\n"); else rsprintf("\n"); - rsprintf("%s\n", loc("Remember me on this computer")); + rsprintf("%s
\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("\n"); } show_forgot_link = (!getcfg(lbs->name, "allow password change", str, sizeof(str)) || atoi(str) == 1);