I am trying to include recaptcha with my web-to-lead form, and writing form code in the script, so cant include the <script src="https://www.google.com/recaptcha/api.js">
inside the main script. I tried many ways but couldn't make it work,
can Someone please tell me a way to work around that will be a great help
MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): User, original object: Account: 
But while writting the unit testing it is giving the above error,
The code does a part where it updates the contact and user details of the user. This user which is being updated is not the logged in one.