Commit ffarid's patch to improve error messaging with authentication type issues. Closes #540.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@566 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-07-16 02:18:07 +00:00
parent 530569351e
commit e722fde0c8

View file

@ -97,7 +97,7 @@ class User < ActiveRecord::Base
def validate
unless Tracks::Config.auth_schemes.include?(auth_type)
errors.add("auth_type", "not a valid authentication type")
errors.add("auth_type", "not a valid authentication type (#{auth_type})")
end
end