ember_simple_auth-rails 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6956583f0ef31fb5eae582aa5fda6d694df753e6
|
4
|
+
data.tar.gz: 89333e5c0135e5ffdefbd282416c7ac7ba6e86e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04c7aed11be25c49ee59176aa38e67509323d0c828fdc42edd118243c8fed8f5fd72ce4d82304efdca792d2245d58305d51bc3f7d03b3fc8da8a7c001a4c29d
|
7
|
+
data.tar.gz: 1400dd996f404f5732577804651f9d8fbc970e17acbb8b8a7fcffe0a18cbad5b73918cd6554d3ee1a890a15464ac9334faca1e41323020b55e015f3ac28647e3
|
@@ -558,7 +558,7 @@ define("ember-simple-auth/mixins/application_route_mixin",
|
|
558
558
|
'sessionInvalidationFailed',
|
559
559
|
'authorizationFailed'
|
560
560
|
]).forEach(function(event) {
|
561
|
-
_this.get(
|
561
|
+
_this.get(Configuration.sessionPropertyName).on(event, function(error) {
|
562
562
|
Array.prototype.unshift.call(arguments, event);
|
563
563
|
_this.send.apply(_this, arguments);
|
564
564
|
});
|
@@ -685,7 +685,9 @@ define("ember-simple-auth/mixins/application_route_mixin",
|
|
685
685
|
@method actions.authorizationFailed
|
686
686
|
*/
|
687
687
|
authorizationFailed: function() {
|
688
|
-
this.get(Configuration.sessionPropertyName).
|
688
|
+
if (this.get(Configuration.sessionPropertyName).get('isAuthenticated')) {
|
689
|
+
this.get(Configuration.sessionPropertyName).invalidate();
|
690
|
+
}
|
689
691
|
}
|
690
692
|
}
|
691
693
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember_simple_auth-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- frederik dudzik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|