Update zerostoragecaptcha.h

pull/2/head
acetone 2022-04-24 06:52:40 -04:00 committed by GitHub
parent 69cce22e22
commit 1cf271f3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,7 @@ public:
ZeroStorageCaptcha();
static bool validate(const QString& answer, const QString& token);
static ZeroStorageCaptchaContainer getCaptcha(int length = 5, int difficulty = 3);
static void setOnlyNumbersMode(bool enabled = false) { m_onlyNumbers = enabled; }
QString captchaText() const { return m_captchaText; }
QString captchaToken() const;
@ -93,6 +94,8 @@ public:
void updateCaptcha();
private:
static bool m_onlyNumbers;
qreal m_hmod1;
qreal m_hmod2;
@ -117,4 +120,4 @@ private:
int m_noisePointSize;
};
#endif // ZEROSTORAGECAPTCHA_H
#endif // ZEROSTORAGECAPTCHA_H