mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-12 16:06:38 +00:00
remove device code ip check and fix edit resource dialog state issue
This commit is contained in:
@@ -125,16 +125,6 @@ export async function pollDeviceWebAuth(
|
||||
});
|
||||
}
|
||||
|
||||
// Check if IP matches
|
||||
if (!requestIp || !deviceCode.ip || requestIp !== deviceCode.ip) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.FORBIDDEN,
|
||||
"IP address does not match"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Check if userId is set (should be set when verified)
|
||||
if (!deviceCode.userId) {
|
||||
logger.error("Device code is verified but userId is missing", { codeId: deviceCode.codeId });
|
||||
|
||||
Reference in New Issue
Block a user