1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-07 00:26:33 +02:00

Correcting defaults for password

This commit is contained in:
Mikael Roos
2015-07-25 23:04:27 +02:00
parent 555c3f0185
commit b881832a08

View File

@@ -233,7 +233,7 @@ $pwdType = getConfig('password_type', 'text');
$pwd = get(array('password', 'pwd'), null);
// Check if passwords match, if configured to use passwords
$passwordMatch = false;
$passwordMatch = null;
if ($pwd) {
switch($pwdType) {
case 'md5':
@@ -245,6 +245,8 @@ if ($pwd) {
case 'text':
$passwordMatch = ($pwdConfig === $pwd);
break;
default:
$passwordMatch = false;
}
}