silverwind and Claude
c1ac754bf3
Merge branch 'origin/main' into session-management
...
Conflict resolutions:
- models/migrations/v1_26/v328.go: kept origin/main's TokenPermissions
migration; moved AddUserSessionTable to v1_27/v332.go (1.26.0 closed
at migration 330; 1.27 starts at 331).
- models/migrations/migrations.go: registered session migration as 332
using v1_27.AddUserSessionTable.
- tests/integration/api_admin_test.go: adopted new DecodeJSON return
style; cron count is 30 (added cleanup_user_sessions task).
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com >
2026-05-08 08:48:32 +02:00
b093c2c43c
refactor(templates): remove ctxData from tmpl files, use ctx.RootData instead ( #37567 )
...
Sub-templates have direct access to `ctx.RootData` (the root data map),
so there is no need for callers to explicitly pass it as `ctxData` via `dict`.
Also fix #37569 by the way
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-05-06 18:21:48 +00:00
Eric Lesiuta
0b354c8048
Add user session management and auditing
2026-03-20 21:26:30 -04:00
1ee59f0fa3
Allow disabling authentication related user features ( #31535 )
...
We have some instances that only allow using an external authentication
source for authentication. In this case, users changing their email,
password, or linked OpenID connections will not have any effect, and
we'd like to prevent showing that to them to prevent confusion.
Included in this are several changes to support this:
* A new setting to disable user managed authentication credentials
(email, password & OpenID connections)
* A new setting to disable user managed MFA (2FA codes & WebAuthn)
* Fix an issue where some templates had separate logic for determining
if a feature was disabled since it didn't check the globally disabled
features
* Hide more user setting pages in the navbar when their settings aren't
enabled
---------
Co-authored-by: Kyle D <kdumontnu@gmail.com >
2024-07-09 17:36:31 +00:00
44e0cfa96e
Change to vertical navbar layout for secondary navbar for repo/user/admin settings ( #24246 )
...
Co-Author: @wxiaoguang
This is the first step of #24229 . And this PR will only includes html
changes, and followed by other PRs that fine tune css and change to
submenus.
After:
Admin Level
<img width="1400" alt="Screen Shot 2023-04-21 at 10 07 16"
src="https://user-images.githubusercontent.com/17645053/233523870-f848b61d-056a-4b41-9760-a9a49fea1fe8.png ">
User Level
<img width="1422" alt="Screen Shot 2023-04-21 at 10 07 23"
src="https://user-images.githubusercontent.com/17645053/233523878-979adb20-a657-43d9-99a6-ad414010c0ef.png ">
Repo Level
<img width="1404" alt="Screen Shot 2023-04-21 at 10 07 07"
src="https://user-images.githubusercontent.com/17645053/233523863-337440bd-c03a-4dfd-87fa-cef40300bfe0.png ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-04-23 18:21:21 +08:00
Felipe Leopoldo Sologuren Gutiérrez and GitHub
15c035775a
Add main landmark to templates and adjust titles ( #22670 )
...
* Add main aria landmark to templates
* Adjust some titles to improve understanding of location in navigation
Contributed by @Forgejo
2023-02-01 22:56:10 +00:00
35c3553870
Support webauthn ( #17957 )
...
Migrate from U2F to Webauthn
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-01-14 16:03:31 +01:00
Lunny Xiao and GitHub
de8e3948a5
Refactor auth package ( #17962 )
2022-01-02 21:12:35 +08:00