<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -129,7 +129,7 @@ module Mhs
               cookies[:remember_me_token] = { :value =&gt; model.remember_me_token , :expires =&gt; model.remember_me_token_expires_at }
             end
             set_current_user model 
-          elsif not ActionController::HttpAuthentication::Basic.authorization(request).blank? &amp;&amp; self.class.login_controller.mhs_authentication_system_options[:basic_auth_enabled]
+          elsif self.class.login_controller.mhs_authentication_system_options[:basic_auth_enabled] &amp;&amp; !ActionController::HttpAuthentication::Basic.authorization(request).blank?
             model = authenticate_with_http_basic do |login_attribute_value, password|
               login_attribute = self.class.login_model.mhs_authentication_system_options[:login_attribute]
               instance_eval(&amp;self.class.login_model_scope).login(login_attribute =&gt; login_attribute_value, :password =&gt; password)</diff>
      <filename>lib/controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7acc23556fa7b2a911164cfd2d4bc5f9583fc2fc</id>
    </parent>
  </parents>
  <author>
    <name>Joshua Clayton</name>
    <email>jclayton@fusionary.com</email>
  </author>
  <url>http://github.com/mvanholstyn/mhs_authentication_system/commit/c5d55ed530a6e72b3351cdd5fa16ea8614275d7c</url>
  <id>c5d55ed530a6e72b3351cdd5fa16ea8614275d7c</id>
  <committed-date>2009-03-29T20:11:11-07:00</committed-date>
  <authored-date>2009-03-23T20:08:16-07:00</authored-date>
  <message>Reverse order to check options before seeing if it's basic auth

Signed-off-by: Mark Van Holstyn &lt;mvanholstyn@gmail.com&gt;</message>
  <tree>cfb22501a41974cb2a75a476f5fcbc07ef4e9079</tree>
  <committer>
    <name>Mark Van Holstyn</name>
    <email>mvanholstyn@gmail.com</email>
  </committer>
</commit>
