Backport EE JavaScript changes for SSH pull mirrors
This backports the JavaScript code in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10272.
The auth_method
field may be disabled if SSH is used, which leaves the backend confused whether password
mode is in use. Now we include a hidden field that ensures it will be sent.
Edited by Stan Hu