fixing bug .. now tests pass

This commit is contained in:
Stefan Richter 2011-01-23 07:08:50 +08:00 committed by Reinier Balt
parent 1c90b90909
commit 5ac3f242bc

View file

@ -166,7 +166,7 @@ class User < ActiveRecord::Base
if Tracks::Config.auth_schemes.include?('open_id')
# hope the user enters the correct data
return candidate
return candidate if candidate.auth_type.eql?("open_id")
end
return nil