mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: When using a custom authenticator URL, send request using GET
This commit is contained in:
parent
bd5fa1737d
commit
734a06dd21
@ -24,7 +24,11 @@ const LoginMethod = Ember.Object.extend({
|
|||||||
if (customLogin) {
|
if (customLogin) {
|
||||||
customLogin();
|
customLogin();
|
||||||
} else {
|
} 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) {
|
if (reconnect) {
|
||||||
authUrl += "?reconnect=true";
|
authUrl += "?reconnect=true";
|
||||||
|
Loading…
Reference in New Issue
Block a user