mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Expose WebUI ban counter to users
This commit is contained in:
parent
316f34cbf5
commit
f88d6b2e55
8 changed files with 67 additions and 5 deletions
|
@ -621,6 +621,16 @@ void Preferences::setWebUIPassword(const QByteArray &password)
|
|||
setValue("Preferences/WebUI/Password_PBKDF2", password);
|
||||
}
|
||||
|
||||
int Preferences::getWebUIMaxAuthFailCount() const
|
||||
{
|
||||
return value("Preferences/WebUI/MaxAuthenticationFailCount", 5).toInt();
|
||||
}
|
||||
|
||||
void Preferences::setWebUIMaxAuthFailCount(const int count)
|
||||
{
|
||||
setValue("Preferences/WebUI/MaxAuthenticationFailCount", count);
|
||||
}
|
||||
|
||||
int Preferences::getWebUISessionTimeout() const
|
||||
{
|
||||
return value("Preferences/WebUI/SessionTimeout", 3600).toInt();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue