Auto login passing parameters

Hello, I am trying to log in to CyberPanel by capturing the parameters in the URL with Javascript and passing in the appropriate fields. I can capture and pass the parameters to the appropriate fields, however it seems that there is a check in the fields to detect if the data has been typed, which prevents me from using click() on the Sign In button after adding the values in the respective fields.

I realized that just removing the if statement keyCode === 13 doesn’t work because all fields require typing.

I know that removing this will make the login less secure.

Could Usman or some charitable soul help me with this?

file: /static/loginSystem/login-systen.js

Thanks in advance.