Added also test env backend.
This commit is contained in:
parent
be6c6d2012
commit
c87bd1a800
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module Auth::TEST
|
||||||
def self.check( username, password, config, user )
|
def self.check( username, password, config, user )
|
||||||
|
|
||||||
# development systems
|
# development systems
|
||||||
if !ENV['RAILS_ENV'] || ENV['RAILS_ENV'] == 'development'
|
if !ENV['RAILS_ENV'] || ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
|
||||||
return user if password == 'test'
|
return user if password == 'test'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue