<p>Modified the root level node that the login page redirects to. It is now a function that first checks for, and if on removes, the setup wizard flag. After the check the function then redirects to the default status page.<br><a href="https://github.com/opentechinstitute/luci-commotion/issues/143" class="issue-link" title="setup wizard sometimes fails to turn off">#143</a></p>

<p>Testing Instructions for this pull request. </p>

<p>Test <a href="https://github.com/opentechinstitute/luci-commotion/pull/1" class="issue-link" title="moved commotion_helpers lib from commotion-apps to luci-commotion">#1</a></p>

<ul>
<li>Flash a router with this branch of luci-commotion</li>
<li>During setup wizard, at any point, click on the advanced button in the footer</li>
<li>Once logged in, there should be a "basic configuration" side menu.</li>
<li>If the basic config menu is missing then the patch did not work.</li>
</ul><p>Test <a href="https://github.com/opentechinstitute/luci-commotion/pull/2" class="issue-link" title="added functions to commotions_helper, removed references to luci-splash">#2</a></p>

<ul>
<li>Reflash router to its default state (Or just change the enabled flag in /etc/config/setup_wizard to "1"</li>
<li>Complete the setup wizard. </li>
<li>When the node is running its "applying" animation click the finish button as soon as possible.</li>
<li>This will skip the old setup wizard check and take you to the login page. </li>
<li>Once logged in, there should be a "basic configuration" side menu.</li>
<li>If the basic config menu is missing then the patch did not work.</li>
</ul>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/luci-commotion issue_143</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/luci-commotion/pull/169'>https://github.com/opentechinstitute/luci-commotion/pull/169</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Modified the root level redirect from the login page to a function that first checks for, and if on removes, the setup wizard flag, and then redirects to the default status page.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/169/files#diff-0">luasrc/controller/commotion/basic_config.lua</a>
    (19)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/169.patch'>https://github.com/opentechinstitute/luci-commotion/pull/169.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/169.diff'>https://github.com/opentechinstitute/luci-commotion/pull/169.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/luci-commotion/pull/169'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODU0Mzg0MSwiZGF0YSI6eyJpZCI6MjYxOTk2MzF9fQ==--6c99dbb399a9c2a63edb1ef556db2ae58ac58062.gif' height='1' width='1'></p>