Exemple #1
0
function SaveUserPassword($userId, $new, $old)
{
    $result = DBSaveUserPassword($userId, $old, $new);
    $result['old'] = $old;
    $result['new'] = $new;
    return json_encode_unescaped($result);
}
Exemple #2
0
function SaveUserPassword($userId, $new, $old)
{
    $result = DBSaveUserPassword($userId, fnEncrypt($old), fnEncrypt($new));
    $result['old'] = fnEncrypt($old);
    $result['new'] = fnEncrypt($new);
    return json_encode_unescaped($result);
}