go to CLI directory
php joomla.php user:adduser --username=me --name="My Name" --email=valid_email_address --password="my password" --usergroup=Registered
user is added to the user table
user is not added to the user table
the return value of $userObj->getError() is something like
'the field otpKey does not have a default value'
There is a similar issue if the field 'otep' is not given a default value
I think you just need to add
$user['otpKey'] = '';
$user['otep'] = '';
after line 148 in the addUserCommand.php file
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
To be fair, the table does give both columns a default value (this is MySQL, the same happens with PostgreSQL):
`otpKey` varchar(1000) NOT NULL DEFAULT '' COMMENT 'Two factor authentication encrypted keys',
`otep` varchar(1000) NOT NULL DEFAULT '' COMMENT 'Backup Codes',
It appears that the database table definition is broken on the database server. Still, it's fairly trivial to fix.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-22 08:35:54 |
Closed_By | ⇒ | richard67 |
@nikosdion, is this related to the MFA changes of 4.2?