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
|
||||
}
|
||||
}
|
||||
} else if (res.status === 401 && jsonBody?.message === 'Invalid password') {
|
||||
// Password authentication required
|
||||
} else if (res.status === 401) {
|
||||
// Password authentication required (handles both "Invalid password" and "Password required" from Immich API)
|
||||
return {
|
||||
valid: true,
|
||||
passwordRequired: true
|
||||
|
||||
Reference in New Issue
Block a user