fix: require redirect url to end with .ente.io
This commit is contained in:
parent
a59b3d8d9c
commit
e93563ce78
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ const PasskeysFlow = () => {
|
|||
|
||||
const redirectURL = new URL(redirect);
|
||||
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);
|
||||
setLoading(false);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue