mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
fix: verification / password reset broken
force create new client
This commit is contained in:
@@ -24,7 +24,8 @@ export function FormSendReset() {
|
||||
|
||||
export function FormReset() {
|
||||
const { token } = useParams<{ token: string }>();
|
||||
const client = useContext(AppContext);
|
||||
const config = useApplicationState().config;
|
||||
const client = config.createClient();
|
||||
const history = useHistory();
|
||||
|
||||
return (
|
||||
|
||||
@@ -29,7 +29,8 @@ export function FormResend() {
|
||||
export function FormVerify() {
|
||||
const [error, setError] = useState<undefined | string>(undefined);
|
||||
const { token } = useParams<{ token: string }>();
|
||||
const client = useContext(AppContext);
|
||||
const config = useApplicationState().config;
|
||||
const client = config.createClient();
|
||||
const history = useHistory();
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user