<p>At the moment password field have to contain plain passwords - it is not secure.<br>
It would be grate if module can use ha1 (ha1b) hash for registering purposes.</p>

<p>Variant 1:<br>
Keep plain or hash passwords and change behavior of module by option.<br>
modparam("uac_registrant", "password_type", 2)</p>

<p>"0 - plain password<br>
 1 - ha1 hash"</p>

<p>Variant 2:<br>
Other way, to check value of password field and if it hash - send it 'as is' and calculate ha1 if it is plain text.<br>
Maybe use additional flag in options for this behavior </p>

<p>modparam("uac_registrant", "use_calculated_ha1", 1)</p>

<p>I think, it is not good idea to change database scheme for another one field in table. So I suggest to use the same password field.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/692">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcicmiQcJ1M21Dfcy7SF69gRAXza3pks5pDrPUgaJpZM4GeFUS.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/692"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>