Skip to content

Commit

Permalink
Ham 49 after password reset user should be logged out (#202)
Browse files Browse the repository at this point in the history
* fix(app/worker/profile): fix response validation and enable labeling notification

* fix(app/worker/profile/reset-password): logout user after password reset
  • Loading branch information
KacperKoza343 authored Jul 8, 2024
1 parent 5a7b46f commit 99fe3fc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ import { t } from 'i18next';
import { Link } from 'react-router-dom';
import Typography from '@mui/material/Typography';
import CheckCircle from '@mui/icons-material/CheckCircle';
import { useEffect } from 'react';
import { Button } from '@/components/ui/button';
import { routerPaths } from '@/router/router-paths';
import { PageCard } from '@/components/ui/page-card';
import { colorPalette } from '@/styles/color-palette';
import { useAuth } from '@/auth/use-auth';

export function ResetPasswordWorkerSuccessPage() {
const { signOut } = useAuth();

useEffect(() => {
signOut();
}, [signOut]);
return (
<PageCard
hiddenCancelButton
Expand Down

0 comments on commit 99fe3fc

Please sign in to comment.