mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 20:28:05 -06:00
committed by
GitHub
parent
189514c6de
commit
4471a6377e
@@ -35,13 +35,15 @@
|
||||
|
||||
class QString;
|
||||
|
||||
struct ISessionManager;
|
||||
|
||||
class AuthController : public APIController
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY_MOVE(AuthController)
|
||||
|
||||
public:
|
||||
using APIController::APIController;
|
||||
explicit AuthController(ISessionManager *sessionManager, QObject *parent = nullptr);
|
||||
|
||||
private slots:
|
||||
void loginAction();
|
||||
@@ -52,6 +54,8 @@ private:
|
||||
int failedAttemptsCount() const;
|
||||
void increaseFailedAttempts();
|
||||
|
||||
ISessionManager *m_sessionManager = nullptr;
|
||||
|
||||
struct FailedLogin
|
||||
{
|
||||
int failedAttemptsCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user