test.rb 342 B

12345678910111213
  1. # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
  2. module Auth::Test
  3. def self.check( username, password, config, user )
  4. # development systems
  5. if !ENV['RAILS_ENV'] || ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
  6. return user if password == 'test'
  7. end
  8. return false
  9. end
  10. end