mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-26 19:46:11 -05:00
Add a way to disable/enable users (#3056)
If you want to block users without deleting their account, you can now disable them from the interface.
This commit is contained in:
committed by
GitHub
parent
6edbeaaf6a
commit
caeb660f29
@@ -131,6 +131,11 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$conf->enabled) {
|
||||
Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false);
|
||||
return;
|
||||
}
|
||||
|
||||
$ok = FreshRSS_FormAuth::checkCredentials(
|
||||
$username, $conf->passwordHash, $nonce, $challenge
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user