Commit Graph

11 Commits

Author SHA1 Message Date
Jonathan Trummer aec91881bf changed getQRText() from private to public
Changed access modifier for the function getQRText() from private to
public.
This allows for generating the QR Code in different ways (eg pass the
data from getQRText() to the client and have a Javascript Library render
the QR Code)
2016-06-24 17:34:39 +02:00
RobThree c94fcd83d8 * Added new (PHP7+) CSRNGProvider (uses random_bytes)
* Added a bunch basic of unittests for the RNG's
* QRicketProvider and QRServerProvider now throw on invalid MIME-types
* TwoFactorAuth now first tries to use CSRNGProvider before any of the other RNG providers
2015-12-02 16:38:20 +01:00
RobThree e837caa9ce * Force VerifyCode() to return bool 2015-07-16 15:43:45 +02:00
Rob Janssen 52cbcf7579 * Removed stupid typo 2015-04-30 14:39:06 +02:00
RobThree 955e9b0b03 * Fix for possible timing-attack in verifyCode() method 2015-04-30 12:53:21 +02:00
RobThree f1a729c9ed * Better variable naming 2015-04-06 20:29:16 +02:00
RobThree 74a18a8fa6 * Added some base32 decoding-specific unittests
* Base32 decoding now allows for padding chars
2015-03-22 23:46:15 +01:00
RobThree 34b6f279ca * Tabs -> Spaces. Yep. 2015-03-21 01:35:08 +01:00
Rob Janssen 9e417bdb2f * Size for QR image must be > 0 2015-03-20 12:57:03 +01:00
RobThree 3687b0b32d * Renamed namespace 2015-03-19 15:46:46 +01:00
RobThree 553b725ab7 * Move stuff around 2015-03-19 15:05:51 +01:00