<p>This pull request addresses luci-commotion issue 411:<br><a href="https://github.com/opentechinstitute/luci-commotion/issues/411" class="issue-link" title="admin password is limited to 126 characters">#411</a></p>

<p>Adds input validator function to the "validate" module, and adds a check on the admin password field to make sure password does not exceed 126 characters. Most importantly, it passes an error to the user explaining why the password was rejected.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>added admin_pass validator function</li>
  <li>added password length validation and error messages to administration password field</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/438/files#diff-0">luasrc/model/cbi/commotion/basic_ns.lua</a>
    (36)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/438/files#diff-1">modules/validate.lua</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/438.patch'>https://github.com/opentechinstitute/luci-commotion/pull/438.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/438.diff'>https://github.com/opentechinstitute/luci-commotion/pull/438.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/438">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNzkwMTgxNiwiZGF0YSI6eyJpZCI6NDQ2MTc0MjN9fQ==--e2956751e42397d106589279f27b32dbf1b169bb.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Pull Request on GitHub","action":{"@type":"ViewAction","url":"https://github.com/opentechinstitute/luci-commotion/pull/438","name":"View Pull Request"}}</script>