QUnit.testDone(function(){ Cookies.erase(AFTER_AUTH_COOKIE); Error.stackTraceLimit = 999; MockLocation.teardown(); MockTitle.teardown(); MockStripe.teardown(); MockAnalytics.teardown(); FakeServer.stop(); });
this.currentModel.set('isLoggingIn', false); }); } export default Ember.Route.extend(DisallowAuthenticated, { model() { var model = Ember.Object.create({ email: '', password: '', otpRequested: false, isLoggingIn: false }); var afterAuthUrl = Cookies.read(AFTER_AUTH_COOKIE); if (afterAuthUrl) { Cookies.erase(AFTER_AUTH_COOKIE); model.set('afterAuthUrl', afterAuthUrl); } return model; }, redirect(){ if (this.session.get('isAuthenticated')) { this.transitionTo('requires-authorization'); } }, actions: { login() { let route = this;