From 5f49b70c97455390384922861562568532776734 Mon Sep 17 00:00:00 2001 From: fvromera <32909196+fvromera@users.noreply.github.com> Date: Thu, 3 Jun 2021 06:56:53 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20some=20typos=20in=20v=C3=B6kur=C3=B3=20?= =?UTF-8?q?tutorial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/tutorial-vokuro.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/tutorial-vokuro.md b/en/tutorial-vokuro.md index 42f6ca832672..0b975dc36053 100644 --- a/en/tutorial-vokuro.md +++ b/en/tutorial-vokuro.md @@ -1468,7 +1468,7 @@ class Users extends Model } ``` -The `beforeValidationOnCreate` will fire every time we have a new record (`Create`), before any validations occur. We check if we have a defined password and if not, we will generate a random string, then hash that string using [Phalcon\Security](security) amd storing it in the `password` property. We also set the flag to change the password. +The `beforeValidationOnCreate` will fire every time we have a new record (`Create`), before any validations occur. We check if we have a defined password and if not, we will generate a random string, then hash that string using [Phalcon\Security](security) and storing it in the `password` property. We also set the flag to change the password. If the password is not empty, we just set the `mustChangePassword` field to `N`. Finally, we set some defaults on whether the user is `active`, `suspended` or `banned`. This ensures that our record is ready before it is inserted in the database. @@ -1512,7 +1512,7 @@ class Users extends Model The `afterSave` event fires right after a record is saved in the database. In this event we check if emails have been enabled (see `.env` file `useMail` setting), and if active we create a new record in the `EmailConfirmations` table and then save the record. Once everything is done, a notice will appear on screen. > **NOTE**: Note that the `EmailConfirmations` model also has an `afterCreate` event, which is responsible for actually sending the email to the user. -{: .alert .alert=info } +{: .alert .alert-info } **Validation**