Skip to content

Commit

Permalink
Merge pull request #11 from lonre/develop
Browse files Browse the repository at this point in the history
Fix expiry data type
  • Loading branch information
lynndylanhurley committed Aug 10, 2014
2 parents 2452c6c + d17c32b commit 18b922f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise_token_auth/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def create

@user.tokens[@client_id] = {
token: BCrypt::Password.create(@token),
expiry: Time.now + DeviseTokenAuth.token_lifespan
expiry: (Time.now + DeviseTokenAuth.token_lifespan).to_i
}
@user.save

Expand Down

0 comments on commit 18b922f

Please sign in to comment.