Changes between Initial Version and Version 1 of Ticket #24202
- Timestamp:
- Jan 22, 2015, 8:29:09 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24202
- Property Component Uncategorized → Forms
- Property Type Uncategorized → New feature
-
Ticket #24202 – Description
initial v1 1 1 If you're implementing Stripe, Adyen, or other big payment solutions today, then you can use client side encryption, where form fields are used for inputting e.g. credit card number (etc), but that will be encrypted before the form is submitted to the server. These fields should not be sent raw to the server, so you usually remove the name attribute on the input fields. 2 2 3 It would be really useful if django had a SensitiveTextInput widget that just removed its name attribute. This idea is from here: http://stackoverflow.com/questions/18116917/change-form-input-attribute-name-to-data-encrypted-name3 It would be really great if django had a SensitiveTextInput widget for purposes like this. This idea is from here: http://stackoverflow.com/questions/18116917/change-form-input-attribute-name-to-data-encrypted-name 4 4 5 Suggested class:5 Here's a suggested class: 6 6 7 {{{python 7 {{{ 8 #!python 8 9 # a text input widget with no name attribute 9 10 class SensitiveTextInput(forms.TextInput):