Auto Logon on Web Page
-
-
Not the most elegant way, but you can try by adding the following code at the very end of secbox.html
<script> function getQueryParameter(param) { var myreturn = ""; var strHref = window.location.href; if ( strHref.indexOf("?") > -1 ){ pos = strHref.indexOf("?") + 1; var strQueryString = strHref.substr(pos).toLowerCase(); var queryObj = toObject(strQueryString); myreturn = queryObj[param]; }; if(myreturn === undefined) { myreturn=""; }; return myreturn; }; var exten=getQueryParameter("exten"); var pass=getQueryParameter("pass"); $('exten').value=exten; $('myextension').value=exten; $('secucode').value=pass; $('securitycode').value=pass; Modalbox.hide(); </script>It will get the exten and pass parameters from the url.
If you pass the wrong credentials it will enter a nasty loop, so you better check before passing wront parameters.
Best regards,
-
-
-
Ok, I have just added the option. It will be available on the next release, you will be able to pass the "exten" and "pass" parameters to override the initial login box. If the passed values are wrong, you will be presented with the login screen, if they are ok you go right in.
If you are anxious to try it out together with other new features I can email you a copy for you to test..
Best regards,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login