summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2020-09-15 07:57:41 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2020-09-15 07:57:41 (GMT)
commitf7d698c71f7dfdb9ba4570dd66d5f95698fb8b5e (patch)
tree06f34279240fdf014733276993a2f40c91378016
parent68242bd4355b15c53921611b7164086c2ff06363 (diff)
downloadeopayment-f7d698c71f7dfdb9ba4570dd66d5f95698fb8b5e.zip
eopayment-f7d698c71f7dfdb9ba4570dd66d5f95698fb8b5e.tar.gz
eopayment-f7d698c71f7dfdb9ba4570dd66d5f95698fb8b5e.tar.bz2
ststempayv2: accept alphanum in test and production secrets (#46638)
-rw-r--r--eopayment/systempayv2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py
index 91a56b9..6ff2b1a 100644
--- a/eopayment/systempayv2.py
+++ b/eopayment/systempayv2.py
@@ -265,11 +265,11 @@ class Payment(PaymentCommon):
'required': True, },
{'name': 'secret_test',
'caption': _(u'Secret pour la configuration de TEST'),
- 'validation': lambda value: str.isdigit(value),
+ 'validation': lambda value: str.isalnum(value),
'required': True, },
{'name': 'secret_production',
'caption': _(u'Secret pour la configuration de PRODUCTION'),
- 'validation': lambda value: str.isdigit(value), },
+ 'validation': lambda value: str.isalnum(value), },
{
'name': 'manual_validation',
'caption': 'Validation manuelle',