implement change passwo

This commit is contained in:
Yasiu1376
2023-07-11 14:58:44 +03:30
parent 936740cad4
commit a3e7bc7237
4 changed files with 231 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
import DashboardChangePasswordComponent from "@/components/dashboard/change-password";
import TitlePage from "@/core/components/TitlePage";
import WithAuthMiddleware from "@/middlewares/WithoutAuth";
import { parse } from "next-useragent";
export default function LoanFollowUp() {
return (
<WithAuthMiddleware>
<TitlePage text="Dashboard.change_password" />
<DashboardChangePasswordComponent />
</WithAuthMiddleware>
);
}
export async function getServerSideProps({ req, locale }) {
const { isBot } = parse(req.headers["user-agent"]);
return {
props: {
messages: (await import(`&/locales/${locale}/app.json`)).default,
isBot,
},
};
}