Merge pull request #199 from fraggar/fix/password-protected-shares-401
fix: handle password-protected shares with Immich v2.6+
This commit is contained in:
+2
-2
@@ -200,8 +200,8 @@ class Immich {
|
|||||||
link
|
link
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (res.status === 401 && jsonBody?.message === 'Invalid password') {
|
} else if (res.status === 401) {
|
||||||
// Password authentication required
|
// Password authentication required (handles both "Invalid password" and "Password required" from Immich API)
|
||||||
return {
|
return {
|
||||||
valid: true,
|
valid: true,
|
||||||
passwordRequired: true
|
passwordRequired: true
|
||||||
|
|||||||
Reference in New Issue
Block a user