In the previous chapters, our users haven't been able to do much besides interacting with content. In this chapter, we'll be expanding upon the base User model so that they can register with our application, securely activate their accounts, reset their passwords if they forget them, and change their e-mail address.
Before implementing the previously mentioned functionality, we need to make sure that we can address our users appropriately without having to ask our database for some basic information about the currently logged-in user. To do this, we're going to add some information to our
UserIdentity.php file located at
protected/components/ as shown next in the highlighted ...