<p>What you want is the <a href="https://craftcms.com/docs/3.x/config/config-settings.html#deferpublicregistrationpassword" rel="noreferrer">deferPublicRegistrationPassword</a> config setting.</p>
<blockquote>
<p>By default, Craft will require a 'password' field to be submitted on front-end, public user registrations. Setting this to <code>true</code> will no longer require it on the initial registration form.</p>
<p>If you have email verification enabled, new users will set their password once they've clicked on the verification link in the email. If you don't, the only way they can set their password is to go through your &quot;forgot password&quot; workflow.</p>
</blockquote>

CC BY-SA 4.0
2020-08-08T04:46:43.703Z
Ah perfect! I thought this was a thing but couldn't find it anywhere. Thanks heaps!
revlis
CC BY-SA 4.0
2020-08-08T04:34:23.897Z
2020-08-08T04:34:23.897Z
Marion Newlevant
<p>I have a form to sign up for a trial (offline product) and I feel like the most logical place to store that data is Users, but requiring a password on sign up will likely put people off.</p>
<p>How could I get a frontend form to create a user without requiring a password? One thought it a hidden field and then programmatically changing the password to something random immediately after the save-user action, but I'm not sure how to do that.</p>
<p>Very open to other ideas too.</p>

<users>
Not require password on user signup
# Not require password on user signup

(Asked by: username_0 on 2020-08-08)

I have a form to sign up for a trial (offline product) and I feel like the most logical place to store that data is Users, but requiring a password on sign up will likely put people off.

How could I get a frontend form to create a user without requiring a password? One thought it a hidden field and then programmatically changing the password to something random immediately after the save-user action, but I'm not sure how to do that.

Very open to other ideas too.

**Tags:** users


---

## 1 answers

### Answer by username_1 on 2020-08-08. Score: 5 | Accepted answer

What you want is the [deferPublicRegistrationPassword](https://craftcms.com/docs/3.x/config/config-settings.html#deferpublicregistrationpassword) config setting.

> By default, Craft will require a 'password' field to be submitted on front-end, public user registrations. Setting this to `true` will no longer require it on the initial registration form.
>
> If you have email verification enabled, new users will set their password once they've clicked on the verification link in the email. If you don't, the only way they can set their password is to go through your "forgot password" workflow.

> **Comments:**
> **username_0**: Ah perfect! I thought this was a thing but couldn't find it anywhere. Thanks heaps!  

---

