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.
1414> We offer consulting, training, and team augmentation for Ember.js – check out our [ website] ( https://mainmatter.com/ember-consulting/ ) to learn more!
1515
16- # Ember Simple Auth
16+ # Ember Simple Auth
1717
1818![ Logo] ( http://ember-simple-auth.com/images/logo.png )
1919
@@ -351,7 +351,7 @@ export default class LoginRoute extends Route {
351351 @service session;
352352
353353 beforeModel (transition ) {
354- this .get ( ' session' ) .prohibitAuthentication (' index' );
354+ this .session .prohibitAuthentication (' index' );
355355 }
356356}
357357```
@@ -678,7 +678,7 @@ export default class IndexRoute extends Route {
678678 @service session;
679679
680680 beforeModel (transition ) {
681- this .get ( ' session' ) .requireAuthentication (transition, () => this .transitionToExternal (' login' ));
681+ this .session .requireAuthentication (transition, () => this .transitionToExternal (' login' ));
682682 },
683683}
684684```
You can’t perform that action at this time.
0 commit comments