Email verification test

This commit is contained in:
PovilasKorop
2021-11-01 08:21:55 +02:00
parent 177b740701
commit 355d40f627
4 changed files with 71 additions and 0 deletions
+11
View File
@@ -57,3 +57,14 @@ If the password is filled in, also update that.
Test methods: `test_profile_name_email_update_successful()` and `test_profile_password_update_successful()`.
---
## Task 5. Email Verification.
Make the URL `/secretpage` available only to those who verified their email.
You need to make changes to two files.
In file `routes/web.php` add a Middleware to `/secretpage` URL.
And enable email verification in the `app/Models/User.php` file.
Test method: `test_email_can_be_verified()`.