mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 18:30:58 -05:00
fix: verification / password reset broken
force create new client
This commit is contained in:
parent
a23230850a
commit
896cc13812
2 changed files with 4 additions and 2 deletions
|
@ -24,7 +24,8 @@ export function FormSendReset() {
|
||||||
|
|
||||||
export function FormReset() {
|
export function FormReset() {
|
||||||
const { token } = useParams<{ token: string }>();
|
const { token } = useParams<{ token: string }>();
|
||||||
const client = useContext(AppContext);
|
const config = useApplicationState().config;
|
||||||
|
const client = config.createClient();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -29,7 +29,8 @@ export function FormResend() {
|
||||||
export function FormVerify() {
|
export function FormVerify() {
|
||||||
const [error, setError] = useState<undefined | string>(undefined);
|
const [error, setError] = useState<undefined | string>(undefined);
|
||||||
const { token } = useParams<{ token: string }>();
|
const { token } = useParams<{ token: string }>();
|
||||||
const client = useContext(AppContext);
|
const config = useApplicationState().config;
|
||||||
|
const client = config.createClient();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue