aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/userController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-24 01:41:09 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-24 01:41:09 +0200
commitab4ece6780cf841f6ce4e89f7b81a1ff1661f615 (patch)
tree61b7f383d2d9749bc19e4154dcb0407f88785314 /app/Controllers/userController.php
parent1f03e8a3aec8ff4b7bbba45bc3fd14a0552c2bc4 (diff)
CLI do-install
https://github.com/FreshRSS/FreshRSS/issues/1095 https://github.com/FreshRSS/FreshRSS/issues/1090
Diffstat (limited to 'app/Controllers/userController.php')
-rw-r--r--app/Controllers/userController.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index 2f04c7a1d..9dee16e8c 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -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');