- added pages for CONFIDI user;

This commit is contained in:
Vitalii Kiiko
2025-03-06 15:20:42 +01:00
parent 00b4ad8569
commit a9a92baf18
11 changed files with 443 additions and 43 deletions

View File

@@ -36,8 +36,8 @@ const ResetPassword = () => {
setValue
} = useForm({ mode: 'onChange' });
const gotToLoginAdmin = () => {
navigate('/loginadmin');
const gotToLogin = () => {
navigate('/confidi');
}
const onSubmit = (formData) => {
@@ -110,7 +110,6 @@ const ResetPassword = () => {
}, [token]);
useEffect(() => {
console.log(resetPassToken, resetPassEmail);
reset();
setValue('token', resetPassToken);
setValue('email', resetPassEmail);
@@ -191,7 +190,7 @@ const ResetPassword = () => {
<Button
label={__('Accedi', 'gepafin')}
link onClick={gotToLoginAdmin}/>
link onClick={gotToLogin}/>
</form>
</div>
</div>