Fix WebAuthn error checking (#36219)#36235
Merged
silverwind merged 3 commits intogo-gitea:release/v1.25from Jan 6, 2026
Merged
Fix WebAuthn error checking (#36219)#36235silverwind merged 3 commits intogo-gitea:release/v1.25from
silverwind merged 3 commits intogo-gitea:release/v1.25from
Conversation
Fixes: go-gitea#36216 Now `detectWebAuthnSupport` returns the error type and lets the caller decide whether they call `webAuthnError` and show the error. It no longer shows the error during page load when the user has not even interacted with the feature. The bug affects all users on HTTP, so I think a quick fix release for this might be good.
lunny
approved these changes
Dec 24, 2025
lafriks
approved these changes
Dec 24, 2025
Member
|
Merge conflict |
Contributor
|
Is it safe to backport so many unnecessary reafctoring changes? Can the backport be as simple as reverting the last change? |
Member
Author
|
This is definitely neccessary because all instances that use HTTP or old browsers will see the error on the login page. Reverting to the old code would only partially work because if I have sufficiently tested this to believe this is correct. |
wxiaoguang
approved these changes
Dec 24, 2025
Member
|
Please resolve the conflict. |
Collaborator
|
@silverwind please fix the merge conflicts. 🍵 |
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Contributor
|
OK, I resolved the conflicts. |
chudnyi
pushed a commit
to integratop/helm-gitea-mirror
that referenced
this pull request
Mar 25, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [go-gitea/gitea](https://github.com/go-gitea/gitea) | patch | `1.25.3` -> `1.25.4` | --- ### Release Notes <details> <summary>go-gitea/gitea (go-gitea/gitea)</summary> ### [`v1.25.4`](https://github.com/go-gitea/gitea/releases/tag/v1.25.4) [Compare Source](go-gitea/gitea@v1.25.3...v1.25.4) - SECURITY - Release attachments must belong to the intended repo ([#​36347](go-gitea/gitea#36347)) ([#​36375](go-gitea/gitea#36375)) - Fix permission check on org project operations ([#​36318](go-gitea/gitea#36318)) ([#​36373](go-gitea/gitea#36373)) - Clean watches when make a repository private and check permission when send release emails ([#​36319](go-gitea/gitea#36319)) ([#​36370](go-gitea/gitea#36370)) - Add more check for stopwatch read or list ([#​36340](go-gitea/gitea#36340)) ([#​36368](go-gitea/gitea#36368)) - Fix openid setting check ([#​36346](go-gitea/gitea#36346)) ([#​36361](go-gitea/gitea#36361)) - Fix cancel auto merge bug ([#​36341](go-gitea/gitea#36341)) ([#​36356](go-gitea/gitea#36356)) - Fix delete attachment check ([#​36320](go-gitea/gitea#36320)) ([#​36355](go-gitea/gitea#36355)) - LFS locks must belong to the intended repo ([#​36344](go-gitea/gitea#36344)) ([#​36349](go-gitea/gitea#36349)) - Fix bug on notification read ([#​36339](go-gitea/gitea#36339)) [#​36387](go-gitea/gitea#36387) - ENHANCEMENTS - Add more routes to the "expensive" list ([#​36290](go-gitea/gitea#36290)) - Make "commit statuses" API accept slashes in "ref" ([#​36264](go-gitea/gitea#36264)) ([#​36275](go-gitea/gitea#36275)) - BUGFIXES - Fix markdown newline handling during IME composition ([#​36421](go-gitea/gitea#36421)) [#​36424](go-gitea/gitea#36424) - Fix missing repository id when migrating release attachments ([#​36389](go-gitea/gitea#36389)) - Fix bug when compare in the pull request ([#​36363](go-gitea/gitea#36363)) ([#​36372](go-gitea/gitea#36372)) - Fix incorrect text content detection ([#​36364](go-gitea/gitea#36364)) ([#​36369](go-gitea/gitea#36369)) - Fill missing `has_code` in repository api ([#​36338](go-gitea/gitea#36338)) ([#​36359](go-gitea/gitea#36359)) - Fix notifications pagination query parameters ([#​36351](go-gitea/gitea#36351)) ([#​36358](go-gitea/gitea#36358)) - Fix some trivial problems ([#​36336](go-gitea/gitea#36336)) ([#​36337](go-gitea/gitea#36337)) - Prevent panic when GitLab release has more links than sources ([#​36295](go-gitea/gitea#36295)) ([#​36305](go-gitea/gitea#36305)) - Fix stats bug when syncing release ([#​36285](go-gitea/gitea#36285)) ([#​36294](go-gitea/gitea#36294)) - Always honor user's choice for "delete branch after merge" ([#​36281](go-gitea/gitea#36281)) ([#​36286](go-gitea/gitea#36286)) - Use the requested host for LFS links ([#​36242](go-gitea/gitea#36242)) ([#​36258](go-gitea/gitea#36258)) - Fix panic when get editor config file ([#​36241](go-gitea/gitea#36241)) ([#​36247](go-gitea/gitea#36247)) - Fix regression in writing authorized principals ([#​36213](go-gitea/gitea#36213)) ([#​36218](go-gitea/gitea#36218)) - Fix WebAuthn error checking ([#​36219](go-gitea/gitea#36219)) ([#​36235](go-gitea/gitea#36235)) Instances on **[Gitea Cloud](https://cloud.gitea.com)** will be automatically upgraded to this version during the specified maintenance window. </details> --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xOC4xIiwidXBkYXRlZEluVmVyIjoiNDEuMTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsia2luZC9kZXBlbmRlbmN5Il19--> Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/1012 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Renovate Bot <renovate-bot@gitea.com> Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #36219
Fixes: #36216
Now
detectWebAuthnSupportreturns the error type and lets the caller decide whether they callwebAuthnErrorand show the error. It no longer shows the error during page load when the user has not even interacted with the feature.The bug affects all users on HTTP, so I think a quick fix release for this might be good.