zitadel/internal/qrcode
Fabi 4af38b37a6
fix: reduce (#635)
* fix: management reduce optimization

* fix: reduce optimization

* fix: reduce optimization

* fix: merge master
2020-08-26 13:01:37 +02:00
..
qr_svg_test.go fix: improvements for login and oidc (#227) 2020-06-17 08:06:40 +02:00
qr_svg.go fix: improvements for login and oidc (#227) 2020-06-17 08:06:40 +02:00
readme.md fix: reduce (#635) 2020-08-26 13:01:37 +02:00

QR Code to SVG

This package is a copy of https://github.com/aaronarduino/goqrsvg with the difference of creating the svg with class attribute instead of inline style:

s.Rect(currX, currY, qs.blockSize, qs.blockSize, "class=\"color\"")

and not

s.Rect(currX, currY, qs.blockSize, qs.blockSize, "fill:black;stroke:none")

This allows the svg to be styled by css more easily and does not compromise Content Security Policy (CSP).