#3623: Allow username "0" with FormAuthenticate

This commit is contained in:
KeinBaum 2014-06-02 19:11:02 +02:00
parent 3108217d73
commit 88b3629f4f

View file

@ -51,7 +51,7 @@ class FormAuthenticate extends BaseAuthenticate {
}
foreach (array($fields['username'], $fields['password']) as $field) {
$value = $request->data($model . '.' . $field);
if (empty($value) || !is_string($value)) {
if (empty($value) && $value !== "0" || !is_string($value)) {
return false;
}
}