Subscription required

We're contionusly adding new episodes to IHP Casts. Continue your journey into real-world functional programming by subscribing to IHP Casts!

Watch all of IHP Casts for 10 € / Mo

IHP Casts is made by digitally induced, the company making IHP. By using a paid plan you're supporting our mission to drive the adoption of haskell in the software industry.

Episode completed

Next epsiode starting in 3 seconds

Published at


Having a Login doesn’t really do anything if users can’t sign up. To make things easier, let’s generate a Controller and some Views for the Users. Using the New User View, we can remove the failed login attempts field and change the password text field to a passwordField. Now we need to tweak the CreateUserAction we just generated. We need to validate the email and check that the password is not empty. You can add your own validations to check things like password strength. We also need to convert the password into a hash and save it in the user. After signing up we want to be redirected to the signup page. Let’s quickly add a Sign Up button to our navbar when no user is logged in. Now we can sign up and use the created user to log in.