You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
2 weeks ago
..
access_token.go Use db.Find instead of writing methods for every object (#28084) 1 year ago
access_token_scope.go Improve "generate new access token" form (#33730) 2 weeks ago
access_token_scope_test.go Improve "generate new access token" form (#33730) 2 weeks ago
access_token_test.go Use db.Find instead of writing methods for every object (#28084) 1 year ago
auth_token.go Unify password changing and invalidate auth tokens (#27625) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
oauth2.go add skip secondary authorization option for public oauth2 clients (#31454) 8 months ago
oauth2_list.go Use db.Find instead of writing methods for every object (#28084) 1 year ago
oauth2_test.go Use test context in tests and new loop system in benchmarks (#33648) 3 weeks ago
session.go Fix session key conflict with database keyword (#28613) 1 year ago
source.go allow synchronizing user status from OAuth2 login providers (#31572) 8 months ago
source_test.go Refactor db package and remove unnecessary `DumpTables` (#32930) 3 months ago
twofactor.go Use `crypto/sha256` (#29386) 1 year ago
webauthn.go Fix: passkey login not working anymore (#32623) 4 months ago
webauthn_test.go Refactor tests (#33021) 3 months ago