This commit is contained in:
Mylloon 2023-05-14 22:55:18 +02:00
parent ccf780e11e
commit 05a56a4ef0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -72,7 +72,7 @@ let login_twitter ctx username password secret =
inject_username ctx.session_id creds; inject_username ctx.session_id creds;
(* Find password input *) (* Find password input *)
inject_password ctx.session_id creds; inject_password ctx.session_id creds;
(* Detection of 2FA *) (* Detection and injection of 2FA code if needed *)
match find ctx.session_id (CSS "input[name='text']") with match find ctx.session_id (CSS "input[name='text']") with
| [] -> print_endline "Doesn't use 2FA as no input found" | [] -> print_endline "Doesn't use 2FA as no input found"
| _ as l -> | _ as l ->