<p>Registration form errors <strong>only display for <code>password</code> when logged out</strong>. If you're logged in as admin they won't display.</p>

CC BY-SA 3.0
2015-07-31T16:44:44.003Z
2015-07-31T16:44:44.003Z
Rob
<p><strong>Update</strong> For anyone else having a braindead moment, registration form errors only display for <code>password</code> when logged out. If you're logged in as admin they won't display.</p>

<p>User posted even though using an empty password. According to <a href="https://craftcms.stackexchange.com/questions/3060/what-password-requirements-exist-for-new-users">this post</a> and <a href="http://buildwithcraft.com/docs/templating/user-registration-form" rel="nofollow noreferrer">this form template</a> an empty password box (or less than 6 characters) should fail and return an error yes?</p>

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

          {% if account is defined %}
            {{ errorList(account.getErrors('password')) }}
          {% endif %}
      &lt;/div&gt;
    &lt;/div&gt;

    &lt;input class="btn btn-primary" type="submit" value="Register"&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>Screenshots:</p>

<p><a href="https://i.sstatic.net/iLqvJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iLqvJ.png" alt="No error messages"></a></p>

<p><a href="https://i.sstatic.net/syaRY.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/syaRY.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2015-07-29T20:24:29.820Z
This is for new user registration? Can you share the entire form?
Brad Bell
CC BY-SA 3.0
2015-07-31T13:47:24.543Z
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
CC BY-SA 3.0
2015-07-31T16:24:27.400Z
`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
CC BY-SA 3.0
2015-07-31T16:37:33.443Z
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
CC BY-SA 3.0
2015-07-31T16:41:30.127Z
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
CC BY-SA 3.0
2015-07-31T16:43:51.917Z
Haha, yeah I will do! And to the Mandrill post also, which is the same deal. Maybe you need a console error for `stop being a derp` :p
Rob
<error-message><error><registration><password>
Password should fail on front-end registration form
# Password should fail on front-end registration form

(Asked by: username_0 on 2015-07-29)

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?

    
        Password
        
      6 characters or more — keep it secret, keep it safe.

          {% if account is defined %}
            {{ errorList(account.getErrors('password')) }}
          {% endif %}
      
    

    
    


Screenshots:

**Tags:** error-message, error, registration, password

> **Comments:**
> **username_1**: This is for new user registration? Can you share the entire form?  
> **username_0**: 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 %}`?  
> **username_0**: `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?  
> **username_0**: Scrap this, I've been logged in as admin. Password error only gets flagged when creating an account as a regular new user. Oops.  
> **username_1**: 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?  
> **username_0**: Haha, yeah I will do! And to the Mandrill post also, which is the same deal. Maybe you need a console error for `stop being a derp` :p  

---

## 1 answers

### Answer by username_0 on 2015-07-31. Score: 1 | Accepted answer

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


---

