mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-04 22:46:10 -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
@@ -157,6 +157,10 @@ function authorizationToUser() {
|
||||
Minz_Log::warning('Invalid API user ' . $user . ': configuration cannot be found.');
|
||||
unauthorized();
|
||||
}
|
||||
if (!FreshRSS_Context::$user_conf->enabled) {
|
||||
Minz_Log::warning('Invalid API user ' . $user . ': configuration cannot be found.');
|
||||
unauthorized();
|
||||
}
|
||||
if ($headerAuthX[1] === sha1(FreshRSS_Context::$system_conf->salt . $user . FreshRSS_Context::$user_conf->apiPasswordHash)) {
|
||||
return $user;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user