From 0dbcd45c4ed2fa07bdd73c30532f1dc81e7fbcdc Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 14 Oct 2015 11:25:20 -0700 Subject: [PATCH] Remove unneeded user model hook --- app/pods/protected/route.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/pods/protected/route.js b/app/pods/protected/route.js index 4962dab..acb1442 100644 --- a/app/pods/protected/route.js +++ b/app/pods/protected/route.js @@ -1,14 +1,7 @@ import Ember from 'ember'; import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin'; -import parseBase64 from '../../utils/parse-base64'; export default Ember.Route.extend(AuthenticatedRouteMixin, { - model: function() { - let token = this.get('session.secure.token'); - let user = parseBase64(token); - return this.store.find('user', user.sub); - }, - actions: { error: function() { this.transitionTo('/not-found');