src/models/LoginForm.php
public function sendSecureLogin()
    {
        $token = $this->getUser()->getAndStoreToken();

        return Yii::$app->mail
            ->compose(Module::t('login_securetoken_mail_subject'), Module::t('login_securetoken_mail', [
                'url' => Url::base(true),
                'token' => $token,
            ]))
            ->address($this->user->email)
            ->send();
    }
public function sendSecureLogin()
    {
        $token = $this->getUser()->getAndStoreToken();

        return Yii::$app->mail
            ->compose(Module::t('login_securetoken_mail_subject'), Module::t('login_securetoken_mail', [
                'url' => Url::base(true),
                'token' => $token,
            ]))
            ->address($this->user->email)
            ->send();
    }
public function sendSecureLogin ( ) { $ token = $ this -> getUser ( ) -> getAndStoreToken ( ) ; return Yii :: $ app -> mail -> compose ( Module :: t ( 'login_securetoken_mail_subject' ) , Module :: t ( 'login_securetoken_mail' , [ 'url' => Url :: base ( true ) , 'token' => $ token , ] ) ) -> address ( $ this -> user -> email ) -> send ( ) ; }
Send the secure token by mail.

@return boolean
Send the secure token by mail .