hydra-create-user: Warn that creating users with a plaintext password is deprecated

This commit is contained in:
Graham Christensen
2022-01-21 12:56:15 -05:00
parent 98928a4125
commit 0eeced7f08
2 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,8 @@ $db->txn_do(sub {
$user->update({ emailaddress => $emailAddress }) if defined $emailAddress;
if (defined $password) {
# !!! TODO: Remove support for plaintext passwords in 2023.
print STDERR "Submitting plaintext passwords as arguments is deprecated and will be removed. See --help for alternatives.\n";
$user->setPassword($password);
}