Jump to content
Larry Ullman's Book Forums

Raymien

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Raymien

  • Rank
    Newbie
  1. Hi Edward, I think you may have missed part of this topic. I'm using email authentication, rather than username authentication, in which the username is replaced by email in the user creation. Ray
  2. Maybe I should step back a bit, and trace the login process, which starts with LoginForm: $this->_identity=new UserIdentity($this->username,$this->password); //becomes $this->_identity=new UserIdentity($this->email,$this->password); UserIdentity is the component which incorporates the new db authenticate function, and Larry clearly shows/reminds us that email is now username. // Understand that email === username $user = User::model()->findByAttributes(array('email'=>$this->username)); Now, if I understand correctly, $user is the local variable accessin
  3. Yes, the code is not complete, but it would be nice to know the password you used on the sample data. :-) it does appear to be all the same password though. Drumroll please, the password is "password" ;-) Ray
  4. Hello boys and girls, I've been looking at a way to maintain access to the user name when using the Custom Authentication by email, as explained in the book. I think logging in via email is a good idea, as I still have members to our Curling site, who are quite forgetful of their usernames, but email's tend to not change. That being said, I've got at least one player who has actually gotten himself 3 different user accounts, because he forgets his username. On the flip side, many folks like to be called by their names, be it a pseudonym, or their actual name, rather than johnny274
×
×
  • Create New...