ba4f12baa0
Class Throttler implements the bruteforce protection for security actions in Nextcloud. It is working by logging invalid login attempts to the database and slowing down all login attempts from the same subnet. The max delay is 30 seconds and the starting delay are 200 milliseconds. (after the first failed login)
40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @author C Montero-Luque <cml@owncloud.com>
|
|
* @author Frank Karlitschek <frank@karlitschek.de>
|
|
* @author Joas Schilling <nickvergessen@owncloud.com>
|
|
* @author Lukas Reschke <lukas@statuscode.ch>
|
|
* @author Vincent Petry <pvince81@owncloud.com>
|
|
*
|
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
|
* @license AGPL-3.0
|
|
*
|
|
* This code is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
*
|
|
*/
|
|
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
|
|
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
|
|
// when updating major/minor version number.
|
|
$OC_Version = array(9, 1, 0, 13);
|
|
|
|
// The human readable string
|
|
$OC_VersionString = '9.1.0 RC1';
|
|
|
|
$OC_VersionCanBeUpgradedFrom = array(9, 0);
|
|
|
|
// The ownCloud channel
|
|
$OC_Channel = 'git';
|
|
|
|
// The build number
|
|
$OC_Build = '';
|
|
|