protected function getOneTimePassword()
    {
        if (is_null($password = $this->getInputOneTimePassword()) || empty($password)) {
            event(new EmptyOneTimePasswordReceived());

            if ($this->config('throw_exceptions', true)) {
                throw new InvalidOneTimePassword('One Time Password cannot be empty.');
            }
        }

        return $password;
    }
protected function getOneTimePassword()
    {
        if (is_null($password = $this->getInputOneTimePassword()) || empty($password)) {
            event(new EmptyOneTimePasswordReceived());

            if ($this->config('throw_exceptions', true)) {
                throw new InvalidOneTimePassword('One Time Password cannot be empty.');
            }
        }

        return $password;
    }
protected function getOneTimePassword ( ) { if ( is_null ( $ password = $ this -> getInputOneTimePassword ( ) ) || empty ( $ password ) ) { event ( new EmptyOneTimePasswordReceived ( ) ) ; if ( $ this -> config ( 'throw_exceptions' , true ) ) { throw new InvalidOneTimePassword ( 'One Time Password cannot be empty.' ) ; } } return $ password ; }
Get the OTP from user input.

@throws InvalidOneTimePassword

@return mixed
Get the OTP from user input .