public function manageTokenBasedLogin($user_id, $email) {

        //-------------------------------------------------------------
        // Create a Login Token so customer login bypasses login form
        //-------------------------------------------------------------
        $this->userTokenbasedloginRepository->createLoginToken($user_id);

        //-------------------------------------------------------------
        // Send Login Token email to the customer
        //-------------------------------------------------------------
        $this->sendLoginTokenEmail->sendEmail($user_id, $email);

        return;
    }
public function manageTokenBasedLogin($user_id, $email) {

        //-------------------------------------------------------------
        // Create a Login Token so customer login bypasses login form
        //-------------------------------------------------------------
        $this->userTokenbasedloginRepository->createLoginToken($user_id);

        //-------------------------------------------------------------
        // Send Login Token email to the customer
        //-------------------------------------------------------------
        $this->sendLoginTokenEmail->sendEmail($user_id, $email);

        return;
    }
public function manageTokenBasedLogin ( $ user_id , $ email ) { //------------------------------------------------------------- // Create a Login Token so customer login bypasses login form //------------------------------------------------------------- $ this -> userTokenbasedloginRepository -> createLoginToken ( $ user_id ) ; //------------------------------------------------------------- // Send Login Token email to the customer //------------------------------------------------------------- $ this -> sendLoginTokenEmail -> sendEmail ( $ user_id , $ email ) ; return ; }
Create the token for token based login; and, send out the email with the token based login link, to a user

@param  int     $user_id   ID field of the "users" db table
@param  array   $email     Email fields for the outgoing email with the token login link
@return void
Create the token for token based login ; and send out the email with the token based login link to a user