Let's move on to allow users to log in to their account. As I mentioned a couple of lessons ago, we can decide to restrict access to only certain features pending upon email verification or restrict total access until email verification. In this lesson, we'll be covering the first scenario.
What you'll learn
- Log in using the
attempt
method - Display authenticated user data in a view
- Check whether a user is logged in or not in a view