2

Update For anyone else having a braindead moment, registration form errors only display for password when logged out. If you're logged in as admin they won't display.

User posted even though using an empty password. According to this post and this form template an empty password box (or less than 6 characters) should fail and return an error yes?

<div class="grid-item 1/1">
    <div class="grid-item xs-1/1 md-1/3 mb">
        <label class="form-label" for="password">Password</label></h3>
        <input id="password" class="form-input" type="password" name="password">
      <small>6 characters or more — keep it secret, keep it safe.</small>

          {% if account is defined %}
            {{ errorList(account.getErrors('password')) }}
          {% endif %}
      </div>
    </div>

    <input class="btn btn-primary" type="submit" value="Register">
    </form>
</div>

Screenshots:

No error messages

enter image description here

6
  • This is for new user registration? Can you share the entire form?
    – Brad Bell
    Commented Jul 29, 2015 at 20:24
  • Yes, new user registration. I've also tried the exact same form from the docs, this one is only modifying the layout and registration button value. Should there be a password value with {%- if account is defined %} value="{{ account.password }}"{% endif %}?
    – Rob
    Commented Jul 31, 2015 at 13:47
  • firstName and lastName don't return errors either, but I assume that's because they're not required in CP and they do post. Would it be wise to use a custom jQuery plugin, or is there a bug with your error console?
    – Rob
    Commented Jul 31, 2015 at 16:24
  • Scrap this, I've been logged in as admin. Password error only gets flagged when creating an account as a regular new user. Oops.
    – Rob
    Commented Jul 31, 2015 at 16:37
  • 2
    I'm only laughing because I've done the same thing myself a dozen times. Wanna go ahead and add that as the official answer?
    – Brad Bell
    Commented Jul 31, 2015 at 16:41

1 Answer 1

1

Registration form errors only display for password when logged out. If you're logged in as admin they won't display.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.