Permalink
Browse files

changed default header/user attribute

  • Loading branch information...
saturnflyer committed Aug 15, 2008
1 parent 1466c18 commit 80b0ac6ad5d48a1b49c97653ddfec0ac77ca01d1
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/header_authorization.rb
@@ -18,11 +18,11 @@ def authenticate_with_header
end
def auth_header
- Radiant::Config[HEADER_AUTHORIZE_KEY].downcase.to_sym || :user_email
+ Radiant::Config[HEADER_AUTHORIZE_KEY].downcase.to_sym || :user_id
end
def auth_attr
- Radiant::Config[HEADER_AUTHORIZE_ATTR].downcase || 'email'
+ Radiant::Config[HEADER_AUTHORIZE_ATTR].downcase || 'login'
end
# Stub out header

0 comments on commit 80b0ac6

Please sign in to comment.