summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-08-28 09:13:57 +0200
committerAzul <azul@leap.se>2013-09-03 08:33:30 +0200
commit2875af7cf9fe22c40a3ea7c1cc34eb563a4f3eed (patch)
treef324d3839684d8f19a4d1baff6b2297f4397b6f5 /users/app/controllers
parentc17edbc069c6dcfc3dd20d8cdfb5922032769a5f (diff)
use Token#authenticate for authentication
This will return the user. But we can add timestamp validations and updates here.
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/controller_extension/token_authentication.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/controller_extension/token_authentication.rb b/users/app/controllers/controller_extension/token_authentication.rb
index 3e2816d..530294a 100644
--- a/users/app/controllers/controller_extension/token_authentication.rb
+++ b/users/app/controllers/controller_extension/token_authentication.rb
@@ -5,7 +5,7 @@ module ControllerExtension::TokenAuthentication
authenticate_with_http_token do |token_id, options|
@token = Token.find(token_id)
end
- @token.user if @token
+ @token.authenticate if @token
end
def logout