fix: require redirect url to end with .ente.io
This commit is contained in:
parent
a59b3d8d9c
commit
e93563ce78
|
@ -33,7 +33,7 @@ const PasskeysFlow = () => {
|
||||||
|
|
||||||
const redirectURL = new URL(redirect);
|
const redirectURL = new URL(redirect);
|
||||||
if (process.env.NEXT_PUBLIC_DISABLE_REDIRECT_CHECK !== 'true') {
|
if (process.env.NEXT_PUBLIC_DISABLE_REDIRECT_CHECK !== 'true') {
|
||||||
if (redirect !== '' && !redirectURL.host.endsWith('ente.io')) {
|
if (redirect !== '' && !redirectURL.host.endsWith('.ente.io')) {
|
||||||
setInvalidInfo(true);
|
setInvalidInfo(true);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue