function lostpass_content(App $a)
{
- $o = '';
if ($a->argc > 1) {
$pwdreset_token = $a->argv[1];
function lostpass_generate_password($user)
{
$o = '';
- $a = \get_app();
$new_password = User::generateNewPassword();
$result = User::updatePassword($user['uid'], $new_password);
'$lbl5' => '<a href="' . System::baseUrl() . '">' . L10n::t('click here to login') . '</a>.',
'$lbl6' => L10n::t('Your password may be changed from the <em>Settings</em> page after successful login.'),
'$newpass' => $new_password,
- '$baseurl' => System::baseUrl()
]);
info("Your password has been reset." . EOL);