pari: trunk r25 - in /trunk/config: home.html options.html

asterisk-gui-commits at lists.digium.internal asterisk-gui-commits at lists.digium.internal
Mon Sep 11 19:53:16 CDT 2006


Author: pari
Date: Mon Sep 11 19:53:15 2006
New Revision: 25

URL: http://svn.digium.com/view/asterisk-gui?rev=25&view=rev
Log:
Username admin hardcoded (options->change password, options.html)

Modified:
    trunk/config/home.html
    trunk/config/options.html

Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?rev=25&r1=24&r2=25&view=diff
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Mon Sep 11 19:53:15 2006
@@ -119,7 +119,7 @@
 		<td colspan=2>
 			<table align="center">
 				<tr><td colspan="2"><h2>Asterisk&trade; Configuration Engine</h2></td>
-				<tr><td>Username:</td><td><input disabled=1 id="username" value="mark"></td></tr>
+				<tr><td>Username:</td><td><input disabled=1 id="username" value="admin"></td></tr>
 				<tr><td>Secret:</td><td><input disabled=1 type="password" id="secret" value="secret"></td></tr>
 				<tr><td colspan=2 align="center">
 				  <div id="statusbar">

Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?rev=25&r1=24&r2=25&view=diff
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Mon Sep 11 19:53:15 2006
@@ -28,7 +28,6 @@
 
 function loggedOff() {
 			$('pwdbutton').disabled = true;
-			$('username').disabled = true;
 			$('currentpass').disabled = true;
 			$('newpass').disabled = true;
 			$('newpass_rep').disabled = true;
@@ -42,7 +41,6 @@
 		} else {
 			$('status').innerHTML = "<i>Please login...</i>";
 			$('pwdbutton').disabled = true;
-			$('username').disabled = true;
 			$('currentpass').disabled = true;
 			$('newpass').disabled = true;
 			$('newpass_rep').disabled = true;
@@ -76,7 +74,7 @@
 
 function askfor_updatepassword(){
 	parent.astmanEngine.sendRequest('action=logoff', options.logoffs);
-	parent.astmanEngine.sendRequest('action=login&username=' + encodeURIComponent($('username').value) + "&secret=" + encodeURIComponent($('currentpass').value), options.logins);
+	parent.astmanEngine.sendRequest('action=login&username=admin&secret=' + encodeURIComponent($('currentpass').value), options.logins);
 	return;
 }
 
@@ -86,7 +84,7 @@
 			asynchronous: true,
 			onComplete: showResponse,
 		};
-		opt.parameters ="action=updateconfig&reload=yes&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000="+ encodeURIComponent($('username').value) +"&Var-000000=secret&Value-000000="+ encodeURIComponent($('newpass').value );
+		opt.parameters ="action=updateconfig&reload=yes&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=admin&Var-000000=secret&Value-000000="+ encodeURIComponent($('newpass').value );
 		var tmp = new Ajax.Request("../../rawman", opt);
 		return;
 }
@@ -96,7 +94,6 @@
 		if( v.length > 1 ){
 			$('status').innerHTML= "Password Updated!!  <BR><BR>Please Relogin using New Password";
 			$('pwdbutton').disabled = true;
-			$('username').disabled = true;
 			$('currentpass').disabled = true;
 			$('newpass').disabled = true;
 			$('newpass_rep').disabled = true;
@@ -141,11 +138,9 @@
 		<td align="center" valign="top">
 				<div id="channellist" class="chanlist">
 				<table>
-				<!--  Till we find out a way to retrieve the current username  -->
-				<tr>	<td>Username</td>
-					<td><input type="text" id="username" size=16></td>
+				<tr>	<td colspan=2 height=18></td>
 				</tr>
-				<!--  wish I had sessions :) -->
+
 				<tr>	<td>Current Password:</td>
 					<td><input type="password" id="currentpass" size=16></td>
 				</tr>



More information about the asterisk-gui-commits mailing list