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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user