gitea/models/auth
Guillaume 303af554c9
Improve "generate new access token" form (#33730)
Fix: https://github.com/go-gitea/gitea/issues/33519

As discussed in [PR
#33614](https://github.com/go-gitea/gitea/pull/33614), the
ScopedAccessTokenSelector Vue component is not particularly useful.

This PR removes the component and reverts to using HTML templates. It
also introduces some (hopefully) useful refactoring.

The Vue component was causing the UX bug reported in the linked issue.
Required form fields are now properly working, as expected (see
screenshot).

![Screenshot from 2025-02-25
22-00-28](https://github.com/user-attachments/assets/41167854-0718-48b0-a3ee-75ca3a7b8b20)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-27 19:40:12 +00:00
..
access_token_scope_test.go Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
access_token_scope.go Improve "generate new access token" form (#33730) 2025-02-27 19:40:12 +00:00
access_token_test.go
access_token.go
auth_token.go
main_test.go
oauth2_list.go
oauth2_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
oauth2.go add skip secondary authorization option for public oauth2 clients (#31454) 2024-07-19 14:28:30 -04:00
session.go
source_test.go Refactor db package and remove unnecessary DumpTables (#32930) 2024-12-20 16:11:38 +00:00
source.go allow synchronizing user status from OAuth2 login providers (#31572) 2024-07-16 20:33:16 +02:00
twofactor.go
webauthn_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
webauthn.go Fix: passkey login not working anymore (#32623) 2024-11-26 16:04:17 +00:00