mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-06 22:23:10 -04:00
CLI do-install
https://github.com/FreshRSS/FreshRSS/issues/1095 https://github.com/FreshRSS/FreshRSS/issues/1090
This commit is contained in:
@@ -24,7 +24,7 @@ class FreshRSS_user_Controller extends Minz_ActionController {
|
||||
}
|
||||
}
|
||||
|
||||
private static function hashPassword($passwordPlain) {
|
||||
public static function hashPassword($passwordPlain) {
|
||||
if (!function_exists('password_hash')) {
|
||||
include_once(LIB_PATH . '/password_compat.php');
|
||||
}
|
||||
@@ -112,9 +112,6 @@ class FreshRSS_user_Controller extends Minz_ActionController {
|
||||
$userConfig['language'] = 'en';
|
||||
}
|
||||
|
||||
$default_user = FreshRSS_Context::$system_conf->default_user;
|
||||
$ok &= (strcasecmp($new_user_name, $default_user) !== 0); //It is forbidden to alter the default user
|
||||
|
||||
$ok &= !in_array(strtoupper($new_user_name), array_map('strtoupper', listUsers())); //Not an existing user, case-insensitive
|
||||
|
||||
$configPath = join_path(DATA_PATH, 'users', $new_user_name, 'config.php');
|
||||
|
||||
Reference in New Issue
Block a user