Skip to content

Allow pasting on upload page to add QR codes easily#527

Merged
Bubka merged 1 commit intoBubka:devfrom
moritzuehling:handle-paste
Feb 23, 2026
Merged

Allow pasting on upload page to add QR codes easily#527
Bubka merged 1 commit intoBubka:devfrom
moritzuehling:handle-paste

Conversation

@moritzuehling
Copy link
Copy Markdown
Contributor

@moritzuehling moritzuehling commented Feb 22, 2026

I recently ran into some issues when I tried to import various 2FA codes - for example, when signing up for an AWS account, it displayed the QR code.

A good workflow is "screenshot, copy, go to 2FAuth, paste" -> but this wasn't supported, because you can only upload images.

This adds a small paste event handler, and it works.

I've tested it somewhat locally*, and it works well!

@moritzuehling
Copy link
Copy Markdown
Contributor Author

As a small aside, I've worked with PHP before (professionally), and I write TypeScript for a living -- and yet setting up this project for local development was really unintutive.

I still haven't managed to set it up so it "just works", e.g. I had to delete the app.scss contents from the 2FAuth-Components package (which isn't documented anywhere in this repo). The npm link is also unintuitive, and not really documented.

And even the PHP web server (php artisan serve) wasn't something I originally knew how to do - it's been a while since I've worked with this. When I forgot to start the vite dev server (after fighting with package managers), it used the previously built assets - which is nice from a backend dev perspective, but i was confused why my edits weren't shown.

Lots of small moving parts I'm sure are second nature to the maintainers, but it did take me > 1hr to get a basic dev env spun up for a small PR, and I'm sure I stil am doing it wrong :(

A couple lines of docs would have helpmed me a lot, e.g. in the contributing.md (here's all the repos you need, we're using npm, you need to install php and composer, rename example.env to .env, then you can start backend like this, and frontend like this, etc.)

@Bubka
Copy link
Copy Markdown
Owner

Bubka commented Feb 23, 2026

Thanks for your PR @moritzuehling

Regarding the project setup,
I acknowledge that it lacks information to set up a dev environment quickly. The 2FAuth-Components only exists since I started working on v6, and I missed time to document correctly how it integrates with other repos.
Thanks for your feedback, it emphasizes some important points that need to be enhanced.

@moritzuehling
Copy link
Copy Markdown
Contributor Author

Yep, that's the goal :) I totally get that maintaining open-source is hard, and I love the software - so thanks for building it :)

Let me know if there's anything to improve on the PR, too! It's a fairly minor change, as all the infrastructure is already there and working! This would also address #410 without the need for the browser extension

@Bubka Bubka merged commit 614e8c2 into Bubka:dev Feb 23, 2026
@github-project-automation github-project-automation bot moved this from Todo to Done in 2FAuth backlog Feb 23, 2026
@Bubka Bubka added this to the v6.1.0 milestone Feb 23, 2026
@Bubka Bubka moved this from Done to Released in 2FAuth backlog Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

2 participants