mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-16 12:24:46 -04:00
PHPStan Level 7 for Minz_Request, FreshRSS_Feed, Minz_Error (#5400)
* PHPStan Level 7 for Minz_Request * PHPStan Level 7 for FreshRSS_Feed * PHPStan Level 7 for Minz_Error
This commit is contained in:
committed by
GitHub
parent
c8d2ead763
commit
2038d50110
@@ -126,13 +126,13 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController {
|
||||
if (FreshRSS_Context::$user_conf == null) {
|
||||
// Initialise the default user to be able to display the error page
|
||||
FreshRSS_Context::initUser(FreshRSS_Context::$system_conf->default_user);
|
||||
Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false);
|
||||
Minz_Error::error(403, _t('feedback.auth.login.invalid'), false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!FreshRSS_Context::$user_conf->enabled || FreshRSS_Context::$user_conf->passwordHash == '') {
|
||||
usleep(random_int(100, 5000)); //Primitive mitigation of timing attacks, in μs
|
||||
Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false);
|
||||
Minz_Error::error(403, _t('feedback.auth.login.invalid'), false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user