|
@@ -1,11 +1,20 @@
|
|
|
import { Card } from "antd";
|
|
import { Card } from "antd";
|
|
|
-import ForgotPassword from "../../../components/nut/users/ForgotPassword";
|
|
|
|
|
import NonSignInSharedLinks from "../../../components/nut/users/NonSignInSharedLinks";
|
|
import NonSignInSharedLinks from "../../../components/nut/users/NonSignInSharedLinks";
|
|
|
|
|
+import { useParams } from "react-router-dom";
|
|
|
|
|
+import ResetPassword from "../../../components/nut/users/ResetPassword";
|
|
|
|
|
+import { useIntl } from "react-intl";
|
|
|
|
|
|
|
|
const Widget = () => {
|
|
const Widget = () => {
|
|
|
|
|
+ const { token } = useParams();
|
|
|
|
|
+ const intl = useIntl();
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
- <Card title="重置密码">
|
|
|
|
|
- <ForgotPassword />
|
|
|
|
|
|
|
+ <Card
|
|
|
|
|
+ title={intl.formatMessage({
|
|
|
|
|
+ id: "buttons.reset.password",
|
|
|
|
|
+ })}
|
|
|
|
|
+ >
|
|
|
|
|
+ <ResetPassword token={token} />
|
|
|
<NonSignInSharedLinks />
|
|
<NonSignInSharedLinks />
|
|
|
</Card>
|
|
</Card>
|
|
|
);
|
|
);
|