FIX: When using a custom authenticator URL, send request using GET

This commit is contained in:
David Taylor 2019-08-27 10:28:17 +01:00
parent bd5fa1737d
commit 734a06dd21

View File

@ -24,7 +24,11 @@ const LoginMethod = Ember.Object.extend({
if (customLogin) {
customLogin();
} else {
let authUrl = this.custom_url || Discourse.getURL(`/auth/${name}`);
if (this.custom_url) {
window.location = this.custom_url;
return;
}
let authUrl = Discourse.getURL(`/auth/${name}`);
if (reconnect) {
authUrl += "?reconnect=true";