From e1154ed90fd9e6edfa919eefeaed1f3dc6854d91 Mon Sep 17 00:00:00 2001 From: Paul Rowe-White Date: Sun, 26 Jan 2014 14:29:38 +0000 Subject: [PATCH] Allow credentials in test env --- lib/devise_kerberos_authenticatable/kerberos_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise_kerberos_authenticatable/kerberos_adapter.rb b/lib/devise_kerberos_authenticatable/kerberos_adapter.rb index 9d6814c..6b6c536 100644 --- a/lib/devise_kerberos_authenticatable/kerberos_adapter.rb +++ b/lib/devise_kerberos_authenticatable/kerberos_adapter.rb @@ -5,7 +5,7 @@ module Devise module KerberosAdapter def self.valid_credentials?(username, password) if Rails.env.test? && username == 'test' && password == 'test' then - true + return true end krb5 = Krb5.new