This commit is contained in:
Mylloon 2023-05-15 11:46:45 +02:00
parent f04b3fa763
commit 408a2b0845
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -30,6 +30,11 @@ let rec _inject_password session_id creds try_count =
match find session_id (CSS "input[name='password']") with
| [] ->
(* Retry to inject username with the second page *)
(* NOTE: I think this is only when a email is first sent, so the second
* injection NEED to be a username (or phone number)
*
* Maybe allow user to provides us with username and email and use email
* by default and fallback to username in the second attempt *)
inject_username session_id creds;
_inject_password session_id creds (try_count - 1);
None