modules/api/v2/models/ResetPassword.php
/**
     * Helper method responsible for finding user based on the model scenario.
     * In Login With Email 'lwe' scenario we find user by email, otherwise by username
     *
     * @return object The found User object.
     */
Helper method responsible for finding user based on the model scenario.
In Login With Email 'lwe' scenario we find user by email, otherwise by username

@return object The found User object.
Helper method responsible for finding user based on the model scenario . In Login With Email ' lwe ' scenario we find user by email otherwise by username @return object The found User object .
private function findUser()
    {
        return $this->_user = User::find()->where(['temporary_password' => $this->tmp_password, 'user_type' => User::USER_TYPE_NORMAL])->one();
    }
private function findUser ( ) { return $ this -> _user = User :: find ( ) -> where ( [ 'temporary_password' => $ this -> tmp_password , 'user_type' => User :: USER_TYPE_NORMAL ] ) -> one ( ) ; }
Helper method responsible for finding user based on the model scenario.
Helper method responsible for finding user based on the model scenario .
// return $this->_user = User::find()->where(['temporary_password' => $this->tmp_password])->one(); //return $this->_user = User::find()->where(['temporary_password' => $this->tmp_password])->one();