Commit 6525c5dc authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Limit to 11 digits when posting username

Some users entered a user ID that has more than 11 digits, which crashes
when trying to login. We therefore limit the user login to 11 digits
like the password is limited to 6 digits.
parent 49605a24
......@@ -58,7 +58,7 @@ class KeypadPage(JsonPage):
class LoginPage(HTMLPage):
def get_login_form(self, username, keypad_password, keypad_id):
form = self.get_form(id="loginForm")
form['j_username'] = username
form['j_username'] = username[:11]
form['j_password'] = keypad_password
form['keypadId'] = keypad_id
return 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