Merge pull request 'fix/redirect-invitation-users' (#391) from fix/redirect-invitation-users into development

Reviewed-on: ADUANASOFT/anexo76#391
This commit is contained in:
2026-05-12 15:37:30 +00:00
5 changed files with 191 additions and 15 deletions

View File

@@ -34,7 +34,7 @@ def _is_token_issue_message(*values: str | None) -> bool:
has_invalid_marker = any(marker in text for marker in invalid_markers)
has_expired_marker = any(marker in text for marker in expired_markers)
return has_expired_marker or (has_token_context and has_invalid_marker)
return (has_expired_marker and has_token_context) or (has_token_context and has_invalid_marker)
def _extract_company_id(request: Request) -> Optional[int]: