mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 17:14:01 +08:00
18 lines
446 B
Plaintext
18 lines
446 B
Plaintext
|
(function() {
|
||
|
const authenticationData = JSON.parse(
|
||
|
document.getElementById("data-authentication").dataset.authenticationData
|
||
|
);
|
||
|
|
||
|
Discourse.showingSignup = true;
|
||
|
require("discourse/routes/application").default.reopen({
|
||
|
actions: {
|
||
|
didTransition: function() {
|
||
|
Em.run.next(function() {
|
||
|
Discourse.authenticationComplete(authenticationData);
|
||
|
});
|
||
|
return this._super();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
})();
|