From 30b1706868a6a5cc399612636c8dae69e0c3c9e5 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 20 Oct 2015 15:03:39 -0700 Subject: [PATCH] Remove old session --- app/sessions/custom.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 app/sessions/custom.js diff --git a/app/sessions/custom.js b/app/sessions/custom.js deleted file mode 100644 index e5a8385..0000000 --- a/app/sessions/custom.js +++ /dev/null @@ -1,12 +0,0 @@ -import Session from 'simple-auth/session'; -import parseBase64 from '../utils/parse-base64'; - -export default Session.extend({ - currentUser: function() { - let token = this.get('secure.token'); - if (token && this.get('isAuthenticated')) { - let t = parseBase64(token); - return this._store.findRecord('user', t['sub']); - } - }.property('secure.token', 'isAuthenticated') -});