mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
License dispenser query strings (#5321)
Co-authored-by: Tim Kern <tim@fleetdm.com>
This commit is contained in:
parent
8bb6b5a9c7
commit
babccf8a36
4 changed files with 4 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
// If the user has a license key, we'll redirect them to the customer dashboard.
|
||||
let userHasExistingSubscription = await Subscription.findOne({user: this.req.me.id});
|
||||
if (userHasExistingSubscription) {
|
||||
throw {redirect: '/customers/dashboard'};
|
||||
throw {redirect: '/customers/dashboard?login'};
|
||||
}
|
||||
|
||||
// Respond with view.
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ parasails.registerPage('new-license', {
|
|||
|
||||
clickGoToDashboard: async function() {
|
||||
this.syncing = true;
|
||||
window.location = '/customers/dashboard';
|
||||
window.location = '/customers/dashboard?order-complete';
|
||||
},
|
||||
|
||||
submittedQuoteForm: async function(quote) {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ parasails.registerPage('login', {
|
|||
// > (Note that we re-enable the syncing state here. This is on purpose--
|
||||
// > to make sure the spinner stays there until the page navigation finishes.)
|
||||
this.syncing = true;
|
||||
window.location = '/customers/new-license';
|
||||
window.location = '/customers/new-license?login';
|
||||
},
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ parasails.registerPage('signup', {
|
|||
// > (Note that we re-enable the syncing state here. This is on purpose--
|
||||
// > to make sure the spinner stays there until the page navigation finishes.)
|
||||
this.syncing = true;
|
||||
window.location = '/customers/new-license';
|
||||
window.location = '/customers/new-license?signup';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue