Killpack/auth *WIP* *WIP* *WIP*

WIP.

It's gonna work like this:
- You type in your username and password, which hits the `authorizations` endpoint. On successful authentication, it returns your auth token.
- Ember stores this auth token somewhere and uses it to make requests from thereon out.
Good call.

On Tue, Oct 21, 2014 at 2:02 PM, Jordan Killpack <notifications@github.com>
wrote:

> In app/models/user.rb:
>
> > @@ -13,6 +13,10 @@ class User < ActiveRecord::Base
> >
> >    scope :by_name, -> { order(:first_name, :last_name) }
> >
> > +  def self.find_for_authentication(email)
> > +    where('lower(email) = lower(?)', email).first
>
> Nope, it's not. What if we have a user whose email address is
> COOL_GUY@YAHOO.COM? In that case, the above method would never be able to
> find this user, since his email is all uppercase. We need to downcase both
> of them.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gschorkopf/frolfr/pull/23/files#r19179022>.
>