diff options
| author | Damien Bouvy <dbo@odoo.com> | 2019-08-23 14:10:34 +0000 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2019-08-23 14:23:32 +0000 |
| commit | 1f8b2c5a1bb5577b29b64f74fc8146ff12788a9b (patch) | |
| tree | d31c6e3c5765c977f06e1efabd53f06da2e69eb4 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 61047da7c83dd80008f2f25527288ec1deb00a5d (diff) | |
[IMP] payment, sale: access token for payment link wizard
When generating a link for a payment through the website_payment/pay
route, including the partner_id 'blindly' is somewhat of a security
issue since it means you could potentially create payments for any
partner of your choosing.
This commit instead introduces an access token mechanism where the
partner_id, amount and currency_id are used to generate a unique access
token that can be checked upon accessing the payment page. This token
is only checked if the partner_id field is set (otherwise this is just
an anonymous payment like any other).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
