Rails for Beginners Part 17: Login Form Discussion
It would be great to show how to do login with both username and email as well.
mm... is the same with, just create the username in your model, and validate username instead of email.
Yes I know. I meant be able to login with either at the same time, similar to how you do it with Devise. https://github.com/heartcombo/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address
I'm getting this error when I try to login:
BCrypt::Errors::InvalidHash in SessionsController#create
I copied the sessions_controller.rb file from the source code. I also created a new user successfully, but it did not fix the issue.