mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
scrut fixes
This commit is contained in:
@@ -44,7 +44,7 @@ function auth_usermanagement() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function adduser($username, $password, $level, $email='', $realname='', $can_modify_passwd='1') {
|
function adduser($username, $password, $level, $email='', $realname='', $can_modify_passwd=1, $description='', $twofactor=0) {
|
||||||
if (!user_exists($username)) {
|
if (!user_exists($username)) {
|
||||||
$hasher = new PasswordHash(8, false);
|
$hasher = new PasswordHash(8, false);
|
||||||
$encrypted = $hasher->HashPassword($password);
|
$encrypted = $hasher->HashPassword($password);
|
||||||
|
|||||||
Reference in New Issue
Block a user