Call UserForm to Re-enter Password when Error logging in

  • I had tried that method, but it doesn't work. I had been using the developer tools to look at the response, but the javascript for the form is so complex and foreign to me that I'm having a hard time with it. The submit button returns a function, and my code doesn't seem to like that.


    Code
    1. strAuthenticate = "username=" & Username & "&password=" & Password & "&appid=4768" & "&submit=return validateAndSubmit(4768);"



    function validateAndSubmit(t){var i=$.trim($("#form_"+t+" input[name=username]").val()),a=$.trim($("#form_"+t+" input[name=password]").val());return""==i?(alert("Please type your "+$("#form_"+t+" input[name=username]").attr("label")),!1):""==a?(alert("Please type your "+$("#form_"+t+" input[name=password]").attr("label")),!1):void(validateCdsUser(i)&&$("#form_"+t).submit())}var hidshowappid=getHidQueryParamValue("hid.show");HigID.prototype={constructor:HigID,render:function(){var t=this._appId,i=this._buttonImage,a=this._appName;this.buttonData=new Object,this.buttonDataPut=function(t,i){""!=i&&(this.buttonData[t]=i)},this.buttonDataPut("buttonImage",this._buttonImage),this._button?$.ajax({url:hidserver+"/services/rest/apps/"+t+"/login_button",type:"GET",data:this.buttonData,dataType:"jsonp",jsonp:"callback",crossDomain:!0,success:function(e,n,o){if("true"==e[0].success)$("#hid_"+t).css("cursor","pointer").html(e[0].html);else if("0"==e[0].appalive)if(""!=i){var s='<img style="width:188px;height:75px;padding:0;" src="'+i+'" class="img-responsive hid-loginBtn" alt="'+a+'" data-target="#hid_systemDownModal" data-toggle="modal"/>';$("#hid_"+t).css("cursor","pointer").html(s)}