Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
remove hardcoded user
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.techno-weenie.net/projects/plugins/restful_authentication@3063 567b1171-46fb-0310-a4c9-b4bef9110e78
  • Loading branch information
technoweenie committed Nov 25, 2007
1 parent 7a3196e commit 581f934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/authenticated/templates/authenticated_system.rb
Expand Up @@ -9,7 +9,7 @@ def logged_in?
# Accesses the current <%= file_name %> from the session. Set it to :false if login fails
# so that future calls do not hit the database.
def current_<%= file_name %>
@current_user ||= (login_from_session || login_from_basic_auth || login_from_cookie || :false)
@current_<%= file_name %> ||= (login_from_session || login_from_basic_auth || login_from_cookie || :false)
end

# Store the given <%= file_name %> in the session.
Expand Down

0 comments on commit 581f934

Please sign in to comment.