# CheckRestrictedPassword Method The CheckRestrictedPassword method checks whether a given string matches the correct restricted SiteKiosk user account password. Syntax
    AdminFunctions.CheckRestrictedPassword(password)
Parameters
password | String value that specifies the password to be checked.
Return Value Returns a Boolean value that is true if the given password is correct. Remarks The AdminFunctions object is only available in the escape menu. Examples The following example allows to quit SiteKiosk if a correct password is entered.
    <input type="password" id="pwd" />
    <input type="button" value="Quit" id="quitbtn" />

    <script type="text/javascript">
    window.external.InitScriptInterface();
    quitbtn.onclick = function() {
      if (AdminFunctions.CheckRestrictedPassword(pwd.value))
        SiteKiosk.Quit();
      else
        alert('Incorrect password.');
    }
    </script>
Applies to SiteKiosk v7.0 (and later versions). Back to top