mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add WebAPI session timeout settings
Raise default timeout to 1 hour.
This commit is contained in:
parent
a65f36592a
commit
89124bdcc8
8 changed files with 132 additions and 64 deletions
|
@ -598,6 +598,16 @@ void Preferences::setWebUIPassword(const QByteArray &password)
|
|||
setValue("Preferences/WebUI/Password_PBKDF2", password);
|
||||
}
|
||||
|
||||
int Preferences::getWebUISessionTimeout() const
|
||||
{
|
||||
return value("Preferences/WebUI/SessionTimeout", 3600).toInt();
|
||||
}
|
||||
|
||||
void Preferences::setWebUISessionTimeout(const int timeout)
|
||||
{
|
||||
setValue("Preferences/WebUI/SessionTimeout", timeout);
|
||||
}
|
||||
|
||||
bool Preferences::isWebUiClickjackingProtectionEnabled() const
|
||||
{
|
||||
return value("Preferences/WebUI/ClickjackingProtection", true).toBool();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue