mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-13 11:34:22 +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);
|
$pwd = get(array('password', 'pwd'), null);
|
||||||
|
|
||||||
// Check if passwords match, if configured to use passwords
|
// Check if passwords match, if configured to use passwords
|
||||||
$passwordMatch = false;
|
$passwordMatch = null;
|
||||||
if ($pwd) {
|
if ($pwd) {
|
||||||
switch($pwdType) {
|
switch($pwdType) {
|
||||||
case 'md5':
|
case 'md5':
|
||||||
@@ -245,6 +245,8 @@ if ($pwd) {
|
|||||||
case 'text':
|
case 'text':
|
||||||
$passwordMatch = ($pwdConfig === $pwd);
|
$passwordMatch = ($pwdConfig === $pwd);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$passwordMatch = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user