mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-29 04:04:29 +00:00
Fixed problem of password change when using crypt()
SVN revision: 937
This commit is contained in:
parent
b4419936c1
commit
f93238e8f2
14
src/elogd.c
14
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.367 2004/07/07 13:27:09 midas
|
||||||
|
Fixed problem of password change when using crypt()
|
||||||
|
|
||||||
Revision 1.366 2004/07/07 13:21:58 midas
|
Revision 1.366 2004/07/07 13:21:58 midas
|
||||||
Removed puts(0)
|
Removed puts(0)
|
||||||
|
|
||||||
@ -6142,9 +6145,14 @@ void show_change_pwd_page(LOGBOOK * lbs)
|
|||||||
char str[256], old_pwd[32], new_pwd[32], new_pwd2[32], act_pwd[32], user[80];
|
char str[256], old_pwd[32], new_pwd[32], new_pwd2[32], act_pwd[32], user[80];
|
||||||
int wrong_pwd;
|
int wrong_pwd;
|
||||||
|
|
||||||
do_crypt(getparam("oldpwd"), old_pwd);
|
old_pwd[0] = new_pwd[0] = new_pwd2[0] = 0;
|
||||||
do_crypt(getparam("newpwd"), new_pwd);
|
|
||||||
do_crypt(getparam("newpwd2"), new_pwd2);
|
if (isparam("oldpwd"))
|
||||||
|
do_crypt(getparam("oldpwd"), old_pwd);
|
||||||
|
if (isparam("newpwd"))
|
||||||
|
do_crypt(getparam("newpwd"), new_pwd);
|
||||||
|
if (isparam("newpwd2"))
|
||||||
|
do_crypt(getparam("newpwd2"), new_pwd2);
|
||||||
|
|
||||||
strcpy(user, getparam("unm"));
|
strcpy(user, getparam("unm"));
|
||||||
if (isparam("config"))
|
if (isparam("config"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user