humhub / twofa

Increase security within your network by adding an additional authentication method besides username and password.
4 stars 5 forks source link

Urlencode account name in otpauth URL #23

Closed weyhmueller closed 3 years ago

weyhmueller commented 3 years ago

The HumHub username can contain UTF-8 characters, and in our case it does. However qrcode.js cannot handle that and won't render the qr code at all. Only output would be an exception in the JS-Console.

This Commit wraps the account name with urlencode to fix that issue.