mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-27 01:24:07 +01:00
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:
parent
530569351e
commit
e722fde0c8
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class User < ActiveRecord::Base
|
||||||
|
|
||||||
def validate
|
def validate
|
||||||
unless Tracks::Config.auth_schemes.include?(auth_type)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue