-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Show tokens in prominent modal #14129
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
Conversation
this is much more common terminology. A step towards go-gitea#3508
Can you use a regular, non-basic modal? I hate these basic modals 😉 |
@silverwind i actually like them ;) but done anyway: |
CI failed is related. |
@lunny as mentioned in PR header: I was unable to pass the token to next request to display the modal after the redirect, so i switched redirects for rending the page instead. This is hacky, but I didn't find a way to use ctx.Flash() in a non-alert / more generic way.. Any help/inputs welcome :) |
sorry I'm late to the party and maybe if this is not the best place to discuss, please, tell me.. but would it be possible to maybe not use a modal and still make the token more prominent on the page? i.e. |
..to avoid them being accidentally overlooked:
fixes #13600
I left the alerts showing the token in for accessibility, as the new approach does not work without JS.
I also renamed "scratch token" to "recovery token" throughout the UI, because this term converys much more meaning and is more common.
Help Wanted:
I was unable to pass the token to next request after the redirect to display the modal, so i switched redirects to render the page instead. This is hacky, but I didn't find a way to use ctx.Flash() in a non-alert / more generic way..