Gargaj / wuhu

Lightweight Party Management System
http://wuhu.function.hu/
Other
41 stars 26 forks source link

Add support to scan vote key with QR code #35

Closed tditlu closed 5 years ago

Gargaj commented 5 years ago

This only scans the QR code, it doesn't generate it, right?

tditlu commented 5 years ago

This only scans the QR code, it doesn't generate it, right?

Yes, only scans in the register form, doing printing from admin is more work, but it's possible.

tditlu commented 5 years ago

Using something like this on the admin side would enable to print also: https://github.com/papnkukn/qrcode-svg

Gargaj commented 5 years ago

I think getting a code on the votekey is a bit more important; that way you'd be able to have the QR code resolve into an URL that prefills the votekey field -> no JS involved.

The problem is I haven't really found a nice and compact PHP QR generator library yet (except http://phpqrcode.sourceforge.net/ )

tditlu commented 5 years ago

How about this one, single file and PHP 5 support: https://github.com/kazuhikoarase/qrcode-generator/blob/master/php/qrcode.php