Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Dec 29, 2025

  • Resolves: #

Summary

Just a minor/tiny refinement for readability, maintainability, and robustness.

  • Use $request->getCookie() instead of $_COOKIE directly
  • Assign dependencies to variables up front for readability.
  • Note exceptions from each login method are possible and are not handled here / must be handled by callers.

TODO

  • ...

Checklist

@joshtrichards joshtrichards changed the title refactor(auth): improve robustness and readability of handleLogin refactor(auth):Use $request->getCookie() instead of $_COOKIE Dec 30, 2025
@joshtrichards joshtrichards added 3. to review Waiting for reviews feature: authentication ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Dec 30, 2025
@joshtrichards joshtrichards changed the title refactor(auth):Use $request->getCookie() instead of $_COOKIE refactor(auth): Use $request->getCookie() instead of $_COOKIE Dec 30, 2025
@joshtrichards joshtrichards marked this pull request as ready for review December 30, 2025 16:46
@joshtrichards joshtrichards requested a review from a team as a code owner December 30, 2025 16:46
@joshtrichards joshtrichards requested review from Altahrim, leftybournes, salmart-dev and yemkareems and removed request for a team December 30, 2025 16:46
@joshtrichards joshtrichards added this to the Nextcloud 33 milestone Dec 30, 2025
This was referenced Jan 7, 2026
- Use $request->getCookie() instead of $_COOKIE directly for consistency.
- Assign dependencies via variables up front for readability.
- Note exceptions from each login method is possible and are not handled here / must be handled by callers.

Just minor refinements to readability, maintainability, and some aspects of robustness.

Signed-off-by: Josh <[email protected]>
Signed-off-by: Josh <[email protected]>
@joshtrichards joshtrichards force-pushed the jtr/refactor-base-handlelogin branch from 54fa444 to fbac3a7 Compare January 11, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: authentication ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants