<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Password set, but instance still public.</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>haah! no :( maybe selfoss should log a warning about config.ini being present but not readable? Thanks for helping, it works now :)</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1404</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1404</guid>
<pubDate>Thu, 29 Aug 2019 02:49:37 +0000</pubDate>
<dc:creator>mdione</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>Hmm, is the <code>config.ini</code> file readable by the user your web server/PHP-FPM runs under?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1403</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1403</guid>
<pubDate>Wed, 28 Aug 2019 22:27:21 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>string(0) &quot;&quot; bool(false) string(0) &quot;&quot; string(0) &quot;&quot; bool(true)</p>
<p>empty empty true?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1401</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1401</guid>
<pubDate>Wed, 28 Aug 2019 15:19:38 +0000</pubDate>
<dc:creator>mdione</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>The authenticated check is done here:</p>
<p><a href="https://github.com/SSilence/selfoss/blob/9a1b107fd3d05dfa7f4cfb74d52293d0fef4aff7/helpers/Authentication.php#L66">https://github.com/SSilence/selfoss/blob/9a1b107fd3d05dfa7f4cfb74d52293d0fef4aff7/helpers/Authentication.php#L66</a></p>
<p>Could you try dumping some more info?</p>
<p><br />
</p>
<pre><code>--- a/controllers/Index.php
+++ b/controllers/Index.php
@@ -17,6 +17,13 @@ class Index extends BaseController {
      * @return void
      */
     public function home() {
+        var_dump(\F3::get('public'));
+        var_dump(\F3::get('auth')-&gt;enabled());
+        var_dump(\F3::get('username'));
+        var_dump(\F3::get('password'));
+        var_dump(file_exists(__DIR__ . '/../config.ini'));
+        exit;
+
         // parse params
         $options = [];
         if (\F3::get('homepage') != '') {</code></pre>]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1399</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1399</guid>
<pubDate>Wed, 28 Aug 2019 12:27:19 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>It doesn't look good:</p>
<p>string(0) &quot;&quot; bool(false) </p>
<p>it's like there's no configuration? At least it's honoring the db settings (sqlite, local file).</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1398</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1398</guid>
<pubDate>Wed, 28 Aug 2019 09:13:33 +0000</pubDate>
<dc:creator>mdione</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>I see a regular logged-in selfoss view, and no logout button. I'll try to apply the patch later.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1397</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1397</guid>
<pubDate>Wed, 28 Aug 2019 07:37:08 +0000</pubDate>
<dc:creator>mdione</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>The configuration looks correct.</p>
<ul>
<li>What do you see instead of login form?<br />
</li><li>Do you see a regular logged-in selfoss view?<br />
</li><li>Is there a logout button in the sidebar?<br />
</li><li>Could you try applying the following change to the source code and sharing what the website prints?</li></ul><p><br />
</p>
<pre><code>--- a/controllers/Index.php
+++ b/controllers/Index.php
@@ -17,6 +17,10 @@ class Index extends BaseController {
      * @return void
      */
     public function home() {
+        var_dump(\F3::get('public'));
+        var_dump(\F3::get('auth')-&gt;enabled());
+        exit;
+
         // parse params
         $options = [];
         if (\F3::get('homepage') != '') {
</code></pre>]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1396</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1396</guid>
<pubDate>Tue, 27 Aug 2019 22:08:14 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>Password set, but instance still public. (reply)</title>
<content:encoded><![CDATA[<p>I also raised the logging to DEBUG. No new info at all.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1394</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1394</guid>
<pubDate>Tue, 27 Aug 2019 21:05:07 +0000</pubDate>
<dc:creator>mdione</dc:creator>
</item>
<item>
<title>Password set, but instance still public.</title>
<content:encoded><![CDATA[<p>I migrated a selfoss installation from one server to another. In fact, I made a new installation and migrated db and config. </p>
<p>The old installation I don't know what version is, but it's not using composer or npm. That instance has user/password prompt OK.</p>
<p>The new one is v2.18, I ran composer and npm and all installed OK. The config is the same, but the instance is public (no user/pass prompt). Here's the relevant config section:</p>
<p>username=xxxxxxxxx<br />
password=f143b54f4532ed3fc1e16e3763303a7e8e33a826d6858822fdd469af296972e11268cf343bc567....<br />
salt=lkjl1289<br />
public=0</p>
<p>I hid the user, cut the hash. I also tried with public=, but still same thing. Any ideas?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1393</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1393</guid>
<pubDate>Tue, 27 Aug 2019 18:49:19 +0000</pubDate>
<dc:creator>mdione</dc:creator>
</item>
</channel>
</rss>
