Skip to content

Commit

Permalink
Incorrect path to fetch the routeAfterAuthentication property in the …
Browse files Browse the repository at this point in the history
…config object.
  • Loading branch information
LuisAverhoff committed Jun 12, 2020
1 parent 9352151 commit da8bb23
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/ember-simple-auth/addon/configuration.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { getWithDefault } from '@ember/object';
import { getWithDefault } from "@ember/object";

const DEFAULTS = {
rootURL: '',
routeAfterAuthentication: 'index',
rootURL: "",
routeAfterAuthentication: "index",
};

/**
Expand Down Expand Up @@ -39,7 +39,11 @@ export default {
routeAfterAuthentication: DEFAULTS.routeAfterAuthentication,

load(config) {
this.rootURL = getWithDefault(config, 'rootURL', DEFAULTS.rootURL);
this.routeAfterAuthentication = getWithDefault(config, 'ember-simple-auth.routeAfterAuthentication', DEFAULTS.routeAfterAuthentication);
}
this.rootURL = getWithDefault(config, "rootURL", DEFAULTS.rootURL);
this.routeAfterAuthentication = getWithDefault(
config,
"routeAfterAuthentication",
DEFAULTS.routeAfterAuthentication
);
},
};

0 comments on commit da8bb23

Please sign in to comment.