<p>Closes <a href="https://github.com/opentechinstitute/luci-commotion/issues/155" class="issue-link" title="Main system page allows changing form values (eg. adding ssh keys) without password">#155</a> </p>

<p>To test:<br>
1. Open Administration > Advanced > System > Administration in a web browser<br>
2. SSH into the node and run <code>uci show dropbear</code><br>
3. Using an incorrect/blank root password, change a number of settings on the page, including ssh keys.<br>
4. Click Save, then run <code>uci show dropbear</code> from the command line. The settings should not have changed. If you added an ssh key, it should not have been added to /etc/dropbear/authorized_keys.<br>
5. Repeat using an incorrect root password and Save & Apply instead of Save. Your settings should not appear in /etc/config/dropbear.<br>
6. Enter the correct root password and repeat. Your new settings should have been saved.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Updating admin.lua patch to honor password validation across maps</li>
  <li>Updated patch -p flag for admin.oldpasswd.patch</li>
  <li>Re-implementing admin password patch</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/170/files#diff-0">files/usr/share/commotion/patches/admin.oldpasswd.patch</a>
    (71)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/170.patch'>https://github.com/opentechinstitute/luci-commotion/pull/170.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/170.diff'>https://github.com/opentechinstitute/luci-commotion/pull/170.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/170'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODc4Njk0NCwiZGF0YSI6eyJpZCI6MjYzMTE3NjR9fQ==--af1f7f0155ffc31f9823c67870456543a04d521e.gif' height='1' width='1'></p>