method store documentation in bbn\Appui\Passwords
Stores a password in the database.
function(string $password, string $id_option)
{
if ($password && defined('BBN_ENCRYPTION_KEY')) {
$arch = &$this->class_cfg['arch']['passwords'];
$to_store = \bbn\Util\Enc::crypt64($password, BBN_ENCRYPTION_KEY);
//var_dump(base64_encode($to_store));
if ($this->db->insertUpdate(
$this->class_cfg['table'],
[
$arch['id_option'] => $id_option,
$arch['password'] => $to_store
]
)
) {
return true;
}
return false;
}
throw new \Exception(X::_("No passwod given or BBN_ENCRYPTION_KEY not defined"));
}
Stores a password in the database. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions