method userStore documentation in bbn\Appui\Passwords
Stores a password in the database for a user.
function(string $password, string $id_pref, bbn\User $user)
{
if (!$password) {
throw new \Exception("No password given");
}
if (!($to_store = $user->crypt($password))) {
throw new \Exception("Impossible to crypt the password");
}
$arch =& $this->class_cfg['arch']['passwords'];
return (bool)$this->db->insertUpdate(
$this->class_cfg['table'],
[
$arch['id_user_option'] => $id_pref,
$arch['password'] => base64_encode($to_store)
]
);
}
Stores a password in the database for a user. 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