Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useEffect(() => {
const key = getUrlParameter('key', props.location.search);
props.activateAction(key);
return () => {
props.reset();
};
}, []);
export const PasswordResetFinishPage = (props: IPasswordResetFinishProps) => {
const [password, setPassword] = useState('');
const [key] = useState(getUrlParameter('key', props.location.search));
useEffect(() => () => props.reset(), []);
const handleValidSubmit = (event, values) => props.handlePasswordResetFinish(key, values.newPassword);
const updatePassword = event => setPassword(event.target.value);
const getResetForm = () => {
return (