src/Security/MemberAuthenticator/LostPasswordHandler.php
protected function validateForgotPasswordData(array $data, LostPasswordForm $form)
    {
        if (empty($data['Email'])) {
            $form->sessionMessage(
                _t(
                    'SilverStripe\\Security\\Member.ENTEREMAIL',
                    'Please enter an email address to get a password reset link.'
                ),
                'bad'
            );

            return $this->redirectToLostPassword();
        }
    }
protected function validateForgotPasswordData(array $data, LostPasswordForm $form)
    {
        if (empty($data['Email'])) {
            $form->sessionMessage(
                _t(
                    'SilverStripe\\Security\\Member.ENTEREMAIL',
                    'Please enter an email address to get a password reset link.'
                ),
                'bad'
            );

            return $this->redirectToLostPassword();
        }
    }
protected function validateForgotPasswordData ( array $ data , LostPasswordForm $ form ) { if ( empty ( $ data [ 'Email' ] ) ) { $ form -> sessionMessage ( _t ( 'SilverStripe\\Security\\Member.ENTEREMAIL' , 'Please enter an email address to get a password reset link.' ) , 'bad' ) ; return $ this -> redirectToLostPassword ( ) ; } }
Ensure that the user has provided an email address. Note that the "Email" key is specific to this
implementation, but child classes can override this method to use another unique identifier field
for validation.

@param  array $data
@param  LostPasswordForm $form
@return HTTPResponse|null
Ensure that the user has provided an email address . Note that the Email key is specific to this implementation but child classes can override this method to use another unique identifier field for validation .