mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Fix password reset redux auth token issue (#5630)
Co-authored by: Sarah Gillespie <sarahgillespi314@gmail.com>
This commit is contained in:
parent
4dd2e57d5b
commit
e3c0e2d3b5
1
changes/issue-5625-create-new-user-password
Normal file
1
changes/issue-5625-create-new-user-password
Normal file
@ -0,0 +1 @@
|
||||
* Fix: Creating a new user password
|
@ -69,10 +69,12 @@ const App = ({ children, location, router }: IAppProps): JSX.Element => {
|
||||
setAvailableTeams(available_teams);
|
||||
fetchConfig();
|
||||
} catch (error) {
|
||||
if (!location?.pathname.includes("/login/reset")) {
|
||||
console.log(error);
|
||||
local.removeItem("auth_token");
|
||||
window.location.href = "/login";
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user