X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fchpasswd.cgi;h=ae9e6ec70b29bf47989b32d2ec820cb79e4f11b1;hb=aa7f55b2dfab3194bbb41bfee671b122eda26da4;hp=e9799f07137c241c360126d65612105a0d2d42ea;hpb=8fb1a115bd39dba0e1db65de76b3682645eb1f0b;p=ipfire-2.x.git diff --git a/html/cgi-bin/chpasswd.cgi b/html/cgi-bin/chpasswd.cgi index e9799f0713..ae9e6ec70b 100644 --- a/html/cgi-bin/chpasswd.cgi +++ b/html/cgi-bin/chpasswd.cgi @@ -20,6 +20,7 @@ ############################################################################### use CGI qw(param); +use Crypt::PasswdMD5; $swroot = "/var/ipfire"; @@ -98,7 +99,10 @@ if ($cgiparams{'SUBMIT'} eq $tr{'advproxy chgwebpwd change password'}) $errormessage = $tr{'advproxy errmsg invalid user'}; goto ERROR; } - if (!(crypt($cgiparams{'OLD_PASSWORD'}, $cryptpwd) eq $cryptpwd)) + if ( + !(crypt($cgiparams{'OLD_PASSWORD'}, $cryptpwd) eq $cryptpwd) && + !(apache_md5_crypt($cgiparams{'OLD_PASSWORD'}, $cryptpwd) eq $cryptpwd) + ) { $errormessage = $tr{'advproxy errmsg password incorrect'}; goto ERROR; @@ -134,59 +138,52 @@ print < - +
- - - -
- -   - -
- +
+ - - - -
- + + $tr{'advproxy chgwebpwd change web password'}
- +
- - + - - + - - + - - +
- + + $tr{'advproxy chgwebpwd username'}:
- + + $tr{'advproxy chgwebpwd old password'}:
- + + $tr{'advproxy chgwebpwd new password'}:
- + + $tr{'advproxy chgwebpwd new password confirm'}:
@@ -204,7 +201,7 @@ if ($errormessage) print < @@ -218,7 +215,7 @@ if ($success) print < @@ -234,15 +231,6 @@ print <
- + $tr{'advproxy chgwebpwd ERROR'} $errormessage - + $tr{'advproxy chgwebpwd SUCCESS'} $tr{'advproxy errmsg change success'}
-
- - Advanced Proxy running on - - IPCop -