Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
- fix missing auth object after logging #1878
Browse files Browse the repository at this point in the history
  • Loading branch information
siemiatj committed Jul 22, 2018
1 parent c487067 commit 5d94451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/app/PasswordRecovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PasswordRecovery extends Component {
const resetPassword = token ? true : false;

if (resetPassword) {
// this.getAvatar();
this.getAvatar();
this.getUserData();
}

Expand Down
3 changes: 2 additions & 1 deletion src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const getRoutes = (store, auth, plugins) => {
<Route
path="/forgottenPassword"
component={({ location }) => (
<Login splat={location.pathname.replace('/', '')} />
<Login splat={location.pathname.replace('/', '')} {...{ auth }} />
)}
/>
<Route
Expand All @@ -172,6 +172,7 @@ export const getRoutes = (store, auth, plugins) => {
<Login
splat={location.pathname.replace('/', '')}
token={location.query.token}
{...{ auth }}
/>
)}
/>
Expand Down

0 comments on commit 5d94451

Please sign in to comment.