Commit 9c1b5941 authored by Jerome Berthier's avatar Jerome Berthier Committed by Vincent A

Revert "[banquepopulaire] raise incorrect password if password is not digits only"

This reverts commit 5430274b965a109a5e6b672eabf35479cadecaa1.
parent 08004649
......@@ -379,12 +379,6 @@ class Login2Page(LoginPage):
return MyVirtKeyboard(imgs).get_string_code(password)
def login(self, login, password):
# All users must have a password with digits only, else the website is broken.
# It accepts the login but fails miserably, raising a real BrowserUnavailable (like in Firefox)
if not password.isdigit():
raise BrowserIncorrectPassword()
payload = {
'validate': {
self.form_id[0]: [ {
......@@ -406,6 +400,9 @@ class Login2Page(LoginPage):
form_id = (k, v[0]['id'], v[0]['type'])
if v[0].get('virtualKeyboard'):
if not password.isdigit():
# Users who get the virtual keyboard needs a password with digits only
raise BrowserIncorrectPassword()
password = self.virtualkeyboard(vk_obj=v[0]['virtualKeyboard'],
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