After working with Aruba, I was able to get this together, tested, and working. Make sure all code is in FOOTER of web login page.
Static Username / Static Password filled into form:
{nwa_script src=jquery.min}
{literal}
<script>
$(function () {
$('input[name=user]').val("your_static_username"); // hardcoded username field
$('input[name=password]').val("your_static_password"); // hardcoded password field
});
</script>
{/literal}
Form hidden from user, but still on page:
{literal}
<style>
/* hide the form */
.nwaForm {
display: none;
}
</style>
{/literal}
Custom Login button that has a label of “Logout” and submits the hidden form:
<button onclick="document.forms[0].submit(); return false;">Logout</button>