Allow pasting on upload page to add QR codes easily#527
Conversation
|
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 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.) |
|
Thanks for your PR @moritzuehling Regarding the project setup, |
|
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 |
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
pasteevent handler, and it works.I've tested it somewhat locally*, and it works well!