ember-auth-rails 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -119,10 +119,12 @@
|
|
119
119
|
|
120
120
|
Auth.Route = Em.Route.extend(Em.Evented, {
|
121
121
|
redirect: function() {
|
122
|
-
if (
|
122
|
+
if (!Auth.get('authToken')) {
|
123
123
|
this.trigger('authAccess');
|
124
|
-
Auth.
|
125
|
-
|
124
|
+
if (Auth.Config.get('authRedirect')) {
|
125
|
+
Auth.set('prevRoute', this.routeName);
|
126
|
+
return this.transitionTo(Auth.Config.get('signInRoute'));
|
127
|
+
}
|
126
128
|
}
|
127
129
|
}
|
128
130
|
});
|
data/lib/ember-auth/version.rb
CHANGED