mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:39:36 +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();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
})();
|