Skip to content

Commit dac3703

Browse files
committed
Merge pull request #314 from piotrpalek/fix-login-issue
Fix login issue
2 parents ffe5d01 + 5da1249 commit dac3703

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/torii-adapters/application.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ import config from '../config/environment';
22
import Ember from 'ember';
33
import ajax from 'ember-ajax';
44

5+
const { inject } = Ember;
6+
57
export default Ember.Object.extend({ /**
68
* Resolve the user over the Github API using the token
79
* @param token API token (either from Cookie or Oauth)
810
* @return Promise
911
*/
12+
13+
store: inject.service(),
14+
1015
resolveUser (token) {
1116
config.TMP_TORII_TOKEN = token;
1217
return this.get('store').find('user', 'current').then((user) => {

0 commit comments

Comments
 (0)