This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/users/lockoutauthenticate/route.js
2015-10-20 13:34:06 -07:00

13 lines
322 B
JavaScript

import Ember from 'ember';
export default Ember.Route.extend({
session: Ember.inject.service('session'),
beforeModel: function(transition) {
this._super(transition);
let token = Ember.get(transition, 'queryParams.token');
this.get('session').authenticate('authenticator:jwt-resolved', token);
},
});