fix: Fix route name to get better format
Change route from `auth/changepassword` to `auth/change-password` Change-Id: I5daff7da387be212d380d0d7b844086c912f005e
This commit is contained in:
parent
c960f06c1a
commit
bec7b84845
@ -221,7 +221,7 @@ export default class Login extends Component {
|
|||||||
userId,
|
userId,
|
||||||
};
|
};
|
||||||
this.rootStore.setPasswordInfo(data);
|
this.rootStore.setPasswordInfo(data);
|
||||||
this.rootStore.routing.push('/auth/changepassword');
|
this.rootStore.routing.push('/auth/change-password');
|
||||||
} else {
|
} else {
|
||||||
this.setState({
|
this.setState({
|
||||||
error: true,
|
error: true,
|
||||||
|
@ -24,7 +24,7 @@ export default [
|
|||||||
routes: [
|
routes: [
|
||||||
{ path: `${PATH}/login`, component: Login, exact: true },
|
{ path: `${PATH}/login`, component: Login, exact: true },
|
||||||
{
|
{
|
||||||
path: `${PATH}/changepassword`,
|
path: `${PATH}/change-password`,
|
||||||
component: ChangePassword,
|
component: ChangePassword,
|
||||||
exact: true,
|
exact: true,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user