Commit 0832f33a authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Corrected error message during security check

During login, the following error:
"Un incident technique s'est produit lors de votre connexion.
Veuillez ressaisir votre  identifiant et votre code personnel."
May contain one or two spaces between "votre" and "identifiant".
In order to catch both correctly and retry the security check, I replaced
the message with "identifiant et votre code personnel" that matches
both.

Closes: 35412@Sibi
parent a724a456
......@@ -134,7 +134,7 @@ class CragrAPI(LoginBrowser):
raise BrowserIncorrectPassword()
if 'obtenir un nouveau code' in message:
raise ActionNeeded(message)
technical_errors = ('Un incident technique', 'Veuillez ressaisir votre identifiant')
technical_errors = ('Un incident technique', 'identifiant et votre code personnel')
if any(value in message for value in technical_errors):
# If it is a technical error, we try login again
form = self.get_security_form()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment