Bootstrapped ChangeUserPassword.js

This commit is contained in:
Philipp Czora
2018-11-07 11:52:30 +01:00
parent 5aaf9ef01e
commit 1caab8adbf
3 changed files with 152 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ import SingleGroup from "../groups/containers/SingleGroup";
import AddGroup from "../groups/containers/AddGroup";
import Config from "../config/containers/Config";
import ChangeUserPassword from "../users/components/ChangeUserPassword";
type Props = {
authenticated?: boolean
@@ -78,6 +79,11 @@ class Main extends React.Component<Props> {
path="/user/:name"
component={SingleUser}
/>
<ProtectedRoute
authenticated={authenticated}
path={"/me/password"}
component={ChangeUserPassword}
/>
<ProtectedRoute
exact
path="/groups"