MINOR Do a isset check before using the value.
This happens if someone accidentially access /Security/LoginForm directly.
This commit is contained in:
parent
d88b39f292
commit
6db830605c
|
@ -30,7 +30,12 @@ class MemberAuthenticator extends Authenticator {
|
|||
* @see Security::setDefaultAdmin()
|
||||
*/
|
||||
public static function authenticate($RAW_data, Form $form = null) {
|
||||
$SQL_user = Convert::raw2sql($RAW_data['Email']);
|
||||
if(array_key_exists('Email', $RAW_data) && $RAW_data['Email']){
|
||||
$SQL_user = Convert::raw2sql($RAW_data['Email']);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$isLockedOut = false;
|
||||
$result = null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue