Put :login_name in change-password PDO default value

This commit is contained in:
the-djmaze 2023-01-05 12:18:15 +01:00
parent 7858b3e06a
commit 712cfbb8f4
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ class ChangePasswordDriverPDO
\RainLoop\Plugins\Property::NewInstance('pdo_sql')->SetLabel('Statement')
->SetType(\RainLoop\Enumerations\PluginPropertyType::STRING_TEXT)
->SetDescription('SQL statement (allowed wildcards :email, :oldpass, :newpass, :domain, :username, :login_name).')
->SetDefaultValue('UPDATE table SET password = :newpass WHERE domain = :domain AND username = :username'),
->SetDefaultValue('UPDATE table SET password = :newpass WHERE (domain = :domain AND username = :username) OR loginname = :login_name'),
\RainLoop\Plugins\Property::NewInstance('pdo_encrypt')->SetLabel('Encryption')
->SetType(\RainLoop\Enumerations\PluginPropertyType::SELECTION)
->SetDefaultValue(array('none', 'bcrypt', 'Argon2i', 'Argon2id', 'SHA256-CRYPT', 'SHA512-CRYPT'))

View file

@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Change Password',
VERSION = '2.17',
RELEASE = '2022-12-08',
VERSION = '2.18',
RELEASE = '2023-01-05',
REQUIRED = '2.23.0',
CATEGORY = 'Security',
DESCRIPTION = 'Extension to allow users to change their passwords';