ember-auth-module-epf-source 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/ember-auth-module-epf.js +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 873d0894f481838f97a2c9a860d85f5365ff27de
|
4
|
+
data.tar.gz: 40c76073d907b8a0e45b2685eee8436420ad1eb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31b44fa1682befb98f013b3babfa4fd420310cce1ce689bd3398a15200fa94e6663f881eb344c1143c73a7196aaad86a008bf21b7ac7dc183c64d9d8d8a1bad9
|
7
|
+
data.tar.gz: 226fba648a93f7d791e07acc451be0b0028d8d9e7157d60bb45f2c6c371ca3d35fd288c87b471ec57d3c424258719af6b8089c73c7e04f50f08bec0f08ec710f
|
@@ -1,20 +1,20 @@
|
|
1
1
|
// Generated by EmberScript 0.0.7
|
2
2
|
var get$ = Ember.get;
|
3
3
|
Em.onLoad('Ember.Application', function (application) {
|
4
|
-
|
4
|
+
application.initializer({
|
5
5
|
name: 'ember-auth.module.epf',
|
6
6
|
before: 'ember-auth-load',
|
7
7
|
initialize: function (container, app) {
|
8
|
-
|
8
|
+
app.register('authModule:epf', get$(get$(Em, 'Auth'), 'EpfAuthModule'), { singleton: true });
|
9
|
+
app.inject('authModule:epf', 'auth', 'auth:main');
|
10
|
+
return app.inject('authModule:epf', 'session', 'session:main');
|
9
11
|
}
|
10
12
|
});
|
11
|
-
});
|
12
|
-
Em.onLoad('Ember.Application', function (application) {
|
13
13
|
return application.initializer({
|
14
|
-
name: 'ember-auth.module.epf
|
15
|
-
after: 'ember-auth
|
14
|
+
name: 'ember-auth.module.epf-load',
|
15
|
+
after: 'ember-auth-load',
|
16
16
|
initialize: function (container, app) {
|
17
|
-
return
|
17
|
+
return container.lookup('authModule:epf');
|
18
18
|
}
|
19
19
|
});
|
20
20
|
});// Generated by EmberScript 0.0.7
|
@@ -25,9 +25,9 @@ set$(get$(Em, 'Auth'), 'EpfAuthModule', Ember.Object.extend({
|
|
25
25
|
null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'epf'));
|
26
26
|
this.patch();
|
27
27
|
get$(this, 'auth').reopen({ user: get$(Em, 'computed').alias('module.epf.user') });
|
28
|
-
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser'));
|
29
|
-
get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser'));
|
30
|
-
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser'));
|
28
|
+
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser').bind(this));
|
29
|
+
get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser').bind(this));
|
30
|
+
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser').bind(this));
|
31
31
|
},
|
32
32
|
user: null,
|
33
33
|
findUser: function () {
|