From aba8948812bcf42af2c97a94d3971d8c6233e879 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 23 Apr 2003 09:59:46 +0000 Subject: [PATCH] Fixed bug that administrator could not change passwords of other users SVN revision: 506 --- src/elogd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index 6151bd68..827a5881 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.91 2003/04/23 09:59:46 midas + Fixed bug that administrator could not change passwords of other users + Revision 1.90 2003/04/23 08:58:20 midas Fixed bug on login with guest access @@ -4880,8 +4883,9 @@ int wrong_pwd; { if (user[0] && get_user_line(lbs->name, user, act_pwd, NULL, NULL, NULL)) { + /* administrator does not have to supply old password */ if (getcfg(lbs->name, "Admin user", str) && - strstr(str, user) != 0) + strstr(str, getparam("unm")) != 0) wrong_pwd = 0; else {