pari: trunk r154 - /trunk/config/home.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Dec 7 10:49:26 MST 2006


Author: pari
Date: Thu Dec  7 11:49:25 2006
New Revision: 154

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=154
Log:
asking users to change their default asteriskNOW password

Modified:
    trunk/config/home.html

Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=154&r1=153&r2=154
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Thu Dec  7 11:49:25 2006
@@ -45,6 +45,16 @@
 	function loggedOn() {
 		if ((parent.loggedon == 1) && (localloggedon == 1))
 			return;
+		if($('secret').value=="password"){
+			parent.loggedon = 1;
+			localloggedon = 1;
+			parent.document.getElementById('logoutlink').innerHTML = "Logout";
+			parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
+			parent.astmanEngine.pollEvents();
+			alert("You are using the default password provided by AsteriskNOW !! \n\n It is strongly recommended that you chnage your default password ");
+			window.location.href="options.html";
+			return;
+		}
 		parent.setLoggedOn(1);
 		parent.loggedon = 1;
 		localloggedon = 1;
@@ -52,7 +62,6 @@
 		$('statusbar').innerHTML = "<img src='images/tick.gif'><i>Connected!</i>";
 		parent.document.getElementById('logoutlink').innerHTML = "Logout";
 		parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
-
 		parent.astmanEngine.pollEvents();
 	}
 	



More information about the asterisk-gui-commits mailing list