function SaveUserPassword($userId, $new, $old) { $result = DBSaveUserPassword($userId, $old, $new); $result['old'] = $old; $result['new'] = $new; return json_encode_unescaped($result); }
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); }