<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Password change of another company from default Company not into db]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1146&amp;type=atom" />
	<updated>2010-03-01T09:24:46Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1146</id>
		<entry>
			<title type="html"><![CDATA[Re: Password change of another company from default Company not into db]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5048#p5048" />
			<content type="html"><![CDATA[<p>This feature update has been merged into the <a href="https://frontaccounting.cvs.sourceforge.net/viewvc/*checkout*/frontaccounting/frontaccount/admin/create_coy.php?revision=1.13">FA trunk</a> today. The version number for the <strong>admin/create_coy.php</strong> is 1.13 now. Thanks Joe.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2010-03-01T09:24:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5048#p5048</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Password change of another company from default Company not into db]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5044#p5044" />
			<content type="html"><![CDATA[<p>As the admpassword form field is to be posted in another company&#039;s database, the following code needs to be appended around the end of the if statement in line 141 or so in admin/create_coy.php file:</p><p>&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($_GET[&#039;c&#039;] = &#039;u&#039;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $conn = $db_connections[$id];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (($db = db_create_db($conn)) == 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;Error connecting to Database: &quot;) . $conn[&#039;dbname&#039;] . _(&quot;, Please correct it&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $error = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db_query(&quot;UPDATE &quot;.$conn[&#039;tbpref&#039;].&quot;users set password = &#039;&quot;.md5($_POST[&#039;admpassword&#039;]). &quot;&#039; WHERE user_id = &#039;admin&#039;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>The function db_create_db() creates a new db only if it does not exist, else merely connects to it.</p><p>Attached is the corrected file.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2010-03-01T06:56:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5044#p5044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Password change of another company from default Company not into db]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5042#p5042" />
			<content type="html"><![CDATA[<p>When we login as admin into the default company and attempt to go to Setup -&gt; Create/Update companies and choose to edit one of the non-default companies and we attempt to change that company&#039;s Administrative Password, the new password does not enter that company&#039;s database. The status of such a submission however states that the change has been successful even though it is not.</p><p>However, when we login to a specific company as admin and attempt to change the admin user&#039;s password, we are able to do so.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2010-03-01T05:06:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5042#p5042</id>
		</entry>
</feed>
