Modify the URL of 'create your account' button to an external site

But how will the user authenticate with discourse when the account doesn’t exist in discourse database and there is no way for discourse to recognize the user.