<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Wrong company is selected when login ... (FA 2.2)]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=943&amp;type=atom" />
	<updated>2009-12-02T09:20:46Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=943</id>
		<entry>
			<title type="html"><![CDATA[Re: Wrong company is selected when login ... (FA 2.2)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4022#p4022" />
			<content type="html"><![CDATA[<p>Unfortunately I cannot confirm this bug. I have tried multiply times with different setups, using def_coy&nbsp; 1 or 0, setting different passwords - always all works right.<br />Maybe this was fixed in stable CVS as today.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2009-12-02T09:20:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4022#p4022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong company is selected when login ... (FA 2.2)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4018#p4018" />
			<content type="html"><![CDATA[<p>$def_coy = 1;</p><p>$tb_pref_counter = 2;</p><p>I went in and programmatically changed it to a $def_coy = 0;&nbsp; this seems to fix the problem.</p><p>Nevertheless, it appears that this is a bug because there is the possibility to have the user get into a situation where they may not be able log in.&nbsp; </p><p>There is an option to select which is your start up company and when this is set other than 0 it will create this problem. (BUG)</p>]]></content>
			<author>
				<name><![CDATA[tezozomoc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=493</uri>
			</author>
			<updated>2009-12-01T23:42:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4018#p4018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong company is selected when login ... (FA 2.2)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4011#p4011" />
			<content type="html"><![CDATA[<p>Check that these variables are there too:</p><p>$def_coy = 0;</p><p>$tb_pref_counter = 2;</p><p>The $def_coy tells which company should be presented as default when logging in. The $tb_pref_counter is the next prefix to use in front of the tables.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2009-12-01T17:05:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4011#p4011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong company is selected when login ... (FA 2.2)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4008#p4008" />
			<content type="html"><![CDATA[<p>Here is the config_db.php</p><p>$db_connections = array (<br />&nbsp; &nbsp; 0 =&gt; array (&#039;name&#039; =&gt; &#039;Training Co.&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;host&#039; =&gt; &#039;localhost&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;dbuser&#039; =&gt; &#039;user&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;dbpassword&#039; =&gt; &#039;pwd&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;dbname&#039; =&gt; &#039;db&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;tbpref&#039; =&gt; &#039;0_&#039;),</p><p>&nbsp; &nbsp; 1 =&gt; array (&#039;name&#039; =&gt; &#039;SCF Coop&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;host&#039; =&gt; &#039;localhost&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;dbuser&#039; =&gt; &#039;user&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;dbpassword&#039; =&gt; &#039;pwd&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;dbname&#039; =&gt; &#039;db&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;tbpref&#039; =&gt; &#039;1_&#039;)</p><p>&nbsp; &nbsp; );</p>]]></content>
			<author>
				<name><![CDATA[tezozomoc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=493</uri>
			</author>
			<updated>2009-12-01T15:05:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4008#p4008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong company is selected when login ... (FA 2.2)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4004#p4004" />
			<content type="html"><![CDATA[<p>Please check the connection data in config_db.php. Surely there is a mistake in it regarding database prefix. When first company is created by install then next one in Create/Update Companies all should be right in this file.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2009-12-01T08:31:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4004#p4004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Wrong company is selected when login ... (FA 2.2)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4003#p4003" />
			<content type="html"><![CDATA[<p>I have 0_ company = Training company<br />I have 1_ company = our working company.</p><p>when I try to login i select Training Co.&nbsp; I have defined a new administrator account.</p><p>I have enabled the sql logging... </p><p>Instead of validating against 0_ company FA selects company 1_ company, which is incorrect...</p><p>SQL..</p><p>SELECT * FROM 1_users WHERE user_id = &#039;tezo&#039; AND password=&#039;XXXXXXXXXXX&#039;</p><br /><br /><p>Incorrect Password</p><p>The user and password combination is not valid for the system.</p><p>If you are not an authorized user, please contact your system administrator to obtain an account to enable you to use the system.</p><p>Does any body have a fix for this...</p>]]></content>
			<author>
				<name><![CDATA[tezozomoc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=493</uri>
			</author>
			<updated>2009-12-01T08:23:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4003#p4003</id>
		</entry>
</feed>
