Extension, Fieldtype, Module

Archived
Forum
(read-only)

Zoo Visitor

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Discontinued

     

Change Password allowing blank submission

Support Request

Damien
Damien

I can’t get the change password form working - it allows the new password and confirm password to submit blank fields. I’ve tried adding rules and this appears to do nothing.

I’ve read other threads elsewhere regards this but no one seems to have posted a solution I can get working.

I’ve tried this with an unedited example template and that also allows blank submissions

This is the current iteration I’m trying:

{exp:zoo_visitor:update_form
  
return="program/change_password/success"
  
require_password="yes"
  
include_jquery="no"
  
include_assets="yes"
  
rules:new_password="required|min_length[5]"
  
rules:new_password_confirm="required|min_length[5]"
 
}
  
 {error
:password} 
    
<fieldset>
  <
class="form-group{if error:current_password} has-error{/if}">
      <
label for="current_password" class="form-label">Current password:</label>
      <
input type="text" name="current_password" id="current_password" class="form-control"  />
     
{error:current_password}
     
</p>
  <
class="form-group{if error:password} has-error{/if}">
            <
label for="new_password" class="form-label">New password</label>
            <
input type="password" name="new_password" id="new_password" class="form-control"  />
   
{error:new_password} 
        
</p>
        <
p>
            <
label for="new_password_confirm" class="form-label{if error:new_password_confirm} has-error{/if}">Confirm New password</label>
   <
input type="password" name="new_password_confirm" id="new_password_confirm" class="form-control"  />
     </
p>
     
{error:new_password_confirm} 
    
</fieldset>
        <
p>
            <
input type="submit" value="Submit" class="button"  class="btn btn-primary btn-lg" />
        </
p>
            
  
{/exp:zoo_visitor:update_form} 

Is this a bug or am I doing it wrong?

I’m using EE2.7.3 incase there are any issues with that?

ExpressionEngine Zoo
# 1
ExpressionEngine Zoo

Hi,

Have a look in ext.zoo_visitor.php and change the line

if (version_compare(APP_VER2.8'>=')) 
with
if (version_compare(APP_VER2.7'>=')) 

Cheers,
Nico

 

Damien
# 2
Damien

Hi Nico,

Sorry; we must be working from different versions of the addon.

That line doesn’t exist in the distribution I have (anywhere) - zoo_visitor_1332_build16052014 (I downloaded a fresh copy from devotee to make sure). The only similar line with an ‘if’ statement is 114

if (version_compare(APP_VER2.8'<')) 

. Changing that makes no difference.

I’ve tried this form in both EE2.7.3 and 2.9.2 - both my template code and the sample code. To make 100% sure, I’ve tried this with a completely fresh install of 2.9.2. No dice.

I have three sandbox installs I’m testing with if you want to send me anything to try - damien AT propeller global.com

Cheers
Damien

Damien
# 3
Damien

Hi Nico, The 1.3.3.3 Beta yo sent me works for changing passwords but I now have a compatibility issue with Zenbu. Sent you an email with further details. Would appreciate if you can take a look as its holding up a project I’m on deadline with.

Damien
# 4
Damien

Confirm issue solved and I’ve passed the information on to Nicholas at Zenbu Studio