File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ __[ and contributors.
14
14
> We offer consulting, training, and team augmentation for Ember.js – check out our [ website] ( https://mainmatter.com/ember-consulting/ ) to learn more!
15
15
16
- # Ember Simple Auth
16
+ # Ember Simple Auth
17
17
18
18
![ Logo] ( http://ember-simple-auth.com/images/logo.png )
19
19
@@ -351,7 +351,7 @@ export default class LoginRoute extends Route {
351
351
@service session;
352
352
353
353
beforeModel (transition ) {
354
- this .get ( ' session' ) .prohibitAuthentication (' index' );
354
+ this .session .prohibitAuthentication (' index' );
355
355
}
356
356
}
357
357
```
@@ -678,7 +678,7 @@ export default class IndexRoute extends Route {
678
678
@service session;
679
679
680
680
beforeModel (transition ) {
681
- this .get ( ' session' ) .requireAuthentication (transition, () => this .transitionToExternal (' login' ));
681
+ this .session .requireAuthentication (transition, () => this .transitionToExternal (' login' ));
682
682
},
683
683
}
684
684
```
You can’t perform that action at this time.
0 commit comments