mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
@@ -21,6 +21,7 @@ import { useClient } from "../ClientContext";
|
|||||||
import { useInteractiveRegistration } from "../auth/useInteractiveRegistration";
|
import { useInteractiveRegistration } from "../auth/useInteractiveRegistration";
|
||||||
import { generateRandomName } from "../auth/generateRandomName";
|
import { generateRandomName } from "../auth/generateRandomName";
|
||||||
import { useRecaptcha } from "../auth/useRecaptcha";
|
import { useRecaptcha } from "../auth/useRecaptcha";
|
||||||
|
import { widget } from "../widget";
|
||||||
|
|
||||||
interface UseRegisterPasswordlessUserType {
|
interface UseRegisterPasswordlessUserType {
|
||||||
privacyPolicyUrl?: string;
|
privacyPolicyUrl?: string;
|
||||||
@@ -39,6 +40,9 @@ export function useRegisterPasswordlessUser(): UseRegisterPasswordlessUserType {
|
|||||||
if (!setClient) {
|
if (!setClient) {
|
||||||
throw new Error("No client context");
|
throw new Error("No client context");
|
||||||
}
|
}
|
||||||
|
if (widget) {
|
||||||
|
throw new Error("We never register passwordless user in widget");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const recaptchaResponse = await execute();
|
const recaptchaResponse = await execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user