There are "validate_field" callbacks on the username and user_directory inputs, but none on the password input.
When every parameter has been input and the "start" button has been pressed, a "validate_workflow" callback is called (with every parameter needed for the check).
We could had a check for the password in one of those two callback functions.
Sometimes (I don't know why) the statusdata.status stays "started" a long time, resulting in the (seemingly) infinite loading.
This doesn't happend when the user/password are correct ( statusdata.status = "completed"), so I have added this check:
else if (statusdata.status == "failed" || statusdata.status == "started") { modal.$body.html([ '<div class="alert alert-danger">', ' <p>The workflow has failed, either the login or password is incorrect. </p>', ' <p>The user must have access to the Genotoul infrastructure. </p>', '</div>', ].join(''));
I have changed the message from "The user must have access to the Genotoul infrastructure." to "You must provide the credentials you use to connect to the GenoToul bioinformatics infrastructure."