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.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
access_token_scope.go Improve "generate new access token" form (#33730) 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_test.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
auth_token.go Unify password changing and invalidate auth tokens (#27625) 2024-02-04 14:05:26 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth2.go add skip secondary authorization option for public oauth2 clients (#31454) 2024-07-19 14:28:30 -04:00
oauth2_list.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
oauth2_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
session.go Fix session key conflict with database keyword (#28613) 2023-12-27 15:24:23 +08:00
source.go allow synchronizing user status from OAuth2 login providers (#31572) 2024-07-16 20:33:16 +02:00
source_test.go Refactor db package and remove unnecessary `DumpTables` (#32930) 2024-12-20 16:11:38 +00:00
twofactor.go Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
webauthn.go Fix: passkey login not working anymore (#32623) 2024-11-26 16:04:17 +00:00
webauthn_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00