From e722fde0c8d115a2ae744ef62cfe7be43fee6056 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Mon, 16 Jul 2007 02:18:07 +0000 Subject: [PATCH] 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 --- tracks/app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/models/user.rb b/tracks/app/models/user.rb index cb73416c..7a3ab1f5 100644 --- a/tracks/app/models/user.rb +++ b/tracks/app/models/user.rb @@ -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