diff options
| author | mo khan <mo@mokhan.ca> | 2014-10-15 18:21:35 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-10-15 18:21:35 -0600 |
| commit | 23832710014f79be98a25abdc96816e911cd34b4 (patch) | |
| tree | ec0ea72b0da3ee461e846570f2e693d172b6c208 /app/controllers/api | |
| parent | 4b766236668468bd8e029538667053cc243e8d7f (diff) | |
fix broken specs.
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/v1/logins_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/logins_controller.rb b/app/controllers/api/v1/logins_controller.rb index 015af7bb..9e5b0c16 100644 --- a/app/controllers/api/v1/logins_controller.rb +++ b/app/controllers/api/v1/logins_controller.rb @@ -3,7 +3,7 @@ module Api class LoginsController < ApplicationController def create @user = User.find_by_email(params[:email]) - if @user.valid_password?(params[:password]) + if @user.authenticate(params[:password]) render json: { auth_token: @user.authentication_token } else render json: { auth_token: "" } |
