In case your users are trying to update their email address via My Account, but are receiving an error message Current password is not valid when submitting the change, please proceed as described below.
This error occurs after recent Identity Management updates for clients using passwordless login and registration. The default version of the Identity Management profile in My Account contains the correct and updated code.
In your Piano dashboard under Manage → Templates locate the Identity Management profile in My Account template and replace the showChangePassword directive with the showChangePasswordPasswordless directive.
Please replace this code:
HTML
<div class="tp-form form-horizontal" showChangePassword>
<div class="control-group">
<label for="current_password" class="control-label"><t>Current Password</t></label>
<div class="controls">
<input type="password" fieldProfileCurrentPassword="" id="current_password" placeholder="{{ 'Current password' | t }}">
</div>
</div>
</div>
With the following:
HTML
<div class="tp-form form-horizontal" showChangePasswordPasswordless>
<div class="control-group">
<label for="current_password" class="control-label"><t>Current Password</t></label>
<div class="controls">
<input type="password" fieldProfileCurrentPassword="" id="current_password" placeholder="{{ 'Current password' | t }}">
</div>
</div>
</div>