Cannot set passwords using spaces (using My Edenred)
Bug report
Important to note: I cowboyed a bit, so I might be the culprit. I managed to manually change the ./usr/local/lib/node_modules/kresus/build/client/main.js
file in the Docker image to incorporate the diff of the MR https://framagit.org/bnjbvr/kresus/merge_requests/613/diffs.
Also I don't know if that's specific to My Edenred or not (I would be glad to help you investigate a bit).
Weboob's version I am using is: 1.4 (up to date)
Kresus's version I am using is: 0.12.2
Steps to reproduce: Add a new "My EdenRed (Ticket Restaurant)" account and fill a password using spaces
What I expect: The password should be accepted
What I observe: The below error occurs, the password isn't accepted
Client logs (if apply):
A request has failed with the following information:
- code: INTERNAL_ERROR
- short message: Invalid JSON custom fields: <password part here>.
- stack: no stack - message: Invalid JSON custom fields: <password part here>.
- stringified: {"code":"INTERNAL_ERROR","message":"Invalid JSON custom fields: <password part here>.","shortMessage":"Invalid JSON custom fields: <password part here>."}
NB: <password part here>
has to be replaced with what is after the space in the password.
Server logs (if apply): None