Tanida Help Center
Search:  
ContentsIndexSearch
Contents
Display Legacy Contents

PrintBookmark

Home > Security > Password protect

Password protect

Add password protection to your movies. This option allows you to create movies that will ask the user for a password prior to playing. If you need the user to log in on the Internet, select 'Server Script' and enter in the URL of the login page. Demo Builder will send the appropriate parameters to the server script (php, asp ...etc.). See sample code below.



Ask Password - Server Script

Input: username , password
Output: valid=true - The password is valid , valid=false - Invalid password

The following php code allows the movie to continue if password is "test".

<?php
$password = $_REQUEST['password'];
$username = $_REQUEST['username'];

if ( $password == "test" ) { echo "valid=true";} else { echo "valid=false";};
?>

Note: This option is only available for movies exported in Flash, H264 or HTML5 format.


See also