Page 1 of 1

Include username and password in HTML link to zoneminder

Posted: Sat May 14, 2011 11:28 pm
by nogero
When I access ZM from my mobile phone it is a pain to enter my username and password. Is there a method to include username and password in the HTML link? For example some systems (lots of cams) allow http://username:password@domain/.... to bypass login prompts. an I do this for a link to enter ZM?

Re: Include username and password in HTML link to zoneminder

Posted: Sun May 15, 2011 1:57 am
by help40
you want to put this link somewhere on other page ? right?

I use such solution .... copy part of login page , and make fields hidden ...
and I have "button" ...

check it , change your URL , user, pass

Code: Select all

 <form name="loginForm" id="loginForm" method="post" action="http://YOURIP.COM/zm/index.php" target="_blank">
        <input name="action" value="login" type="hidden">
        <input name="view" value="postlogin" type="hidden">
        <table id="loginTable" class="minor" cellspacing="0">
          <tbody>
            <tr>
              <td class="colRight"><input name="username" value="USERHERE" size="12" type="hidden"></td>
            </tr>
            <tr>
              <td class="colRight"><input name="password" value="PASSHERE" size="12" type="hidden"></td>
            </tr>
          </tbody>
        </table>
        <input value="ENTER" type="submit" >
      </form>
this will open main page of zone minder .... hope this helped
unfortunately I do not know (yet) how to make other page work , as example monitor ...

Re: Include username and password in HTML link to zoneminder

Posted: Sun May 15, 2011 8:37 pm
by zoneminder
If you change the ZM authentication method to remote you can then set up a htaccess file to manage authentication for your system. You can then use the user:pass@ format for logging in but it will be global.