-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Passkey login support #31504
Add Passkey login support #31504
Conversation
Unrelated, but I see we need to increase contrast on these error message headers :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks alright, but I have not tested it.
Co-authored-by: silverwind <me@silverwind.io>
Thank you for your contributions. But I don't think the login UI is ideal. Maybe we can have a redesign because of Passkey login supported? |
Sure, I am open for suggestions. Using a link seemedd nice as it isn't to dominated compared to another button as not every system is supporting passkeys yet. Mainly orientated on Githubs approach (which seems pretty clean): |
I think we could do the same and separate the links into a separate box. Moving the "Forget Password" besides the password label is also a good idea to make it look less crammed. I can help on these parts if you like. |
That sounds great. Feel free to push to this PR. |
I will. Another change I plan is to make the "Sign In" button full width. It'll look better, be easier to click and match the OAuth buttons as well. |
@silverwind Did some testing: |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Fix markdown preview $$ support (go-gitea#31514) Add Passkey login support (go-gitea#31504) Use stable version of fabric (go-gitea#31526) Always use HTML attributes for avatar size (go-gitea#31509) Add initial typescript config and use it for eslint,vitest,playwright (go-gitea#31186) Support legacy _links LFS batch responses (go-gitea#31513) Fix JS error with disabled attachment and easymde (go-gitea#31511)
As requested in #31504 (comment). This PR refactor the login page:    # Changes - [x] use separate box for passkey login and go to registration - [x] move forgot passoword next to password label - [x] fix password required label `*` and padding - [x] remove tabs from login page --------- Co-authored-by: silverwind <me@silverwind.io>
As requested in go-gitea/gitea#31504 (comment). This PR refactor the login page:    - [x] use separate box for passkey login and go to registration - [x] move forgot passoword next to password label - [x] fix password required label `*` and padding - [x] remove tabs from login page --------- Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit 9c00dda33ad7bd594dd8f331fa1bf0acefc2ca54) Conflict resolution: * signin_navbar.tmpl has been deleted * additions in form.css * major code changes in signin_openid * ...
Follow #31676, which is not correct, see #31676 (comment) Fix #31675, regression of #31504.
closes #22015
After adding a passkey, you can now simply login with it directly by clicking
Sign in with a passkey
.Note for testing. You need to run gitea using
https
to get the full passkeys experience.