diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-26 08:13:38 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-26 08:13:38 +0200 |
commit | ef2fed182ff854786381be71c603ee2fea290e08 (patch) | |
tree | 752df53691b824e37f2319d59cced2b750f4fd6f /src/captcha.hpp | |
parent | 48b476289940862a9754f67752f0a092b0a1f0d2 (diff) | |
download | aCms-ef2fed182ff854786381be71c603ee2fea290e08.tar.gz aCms-ef2fed182ff854786381be71c603ee2fea290e08.tar.bz2 |
some refactoring: removed base64 attempts, captcha in separate class
Diffstat (limited to 'src/captcha.hpp')
-rw-r--r-- | src/captcha.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/captcha.hpp b/src/captcha.hpp new file mode 100644 index 0000000..486522e --- /dev/null +++ b/src/captcha.hpp @@ -0,0 +1,13 @@ +#ifndef CAPTCHA_HPP +#define CAPTCHA_HPP + +#include <string> + +struct captcha { + std::string text; // the text the user has to guess + std::string base64; // the GIF in BASE64 encoding +}; + +captcha generateCaptcha( ); + +#endif |