From 28cbac604388e44f9e7c643a9082ca63fdee93ff Mon Sep 17 00:00:00 2001 From: chiu Date: Sun, 21 Feb 2021 12:16:30 +0800 Subject: [PATCH] fix error --- lib/ldap_login/login.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ldap_login/login.rb b/lib/ldap_login/login.rb index 3a1a78b..2a2c3ad 100644 --- a/lib/ldap_login/login.rb +++ b/lib/ldap_login/login.rb @@ -17,7 +17,7 @@ module LdapLogin::Login # set_flash_message(:notice, :signed_in) if is_navigational_format? if (resource.nil?) puts "===LDAP passed local block... resource:#{resource.inspect}\n login_uid:#{login_uid}" - flash.now.alert = t('devise.failure.ldap_pass_but_account_not_in_orbit') + flash.now.alert = I18n.t('devise.failure.ldap_pass_but_account_not_in_orbit') url = "new" url_method = 'render' else @@ -34,13 +34,13 @@ module LdapLogin::Login end else puts "==password LDAP fail..." - flash.now.alert = t('devise.failure.ldap_invalid') + flash.now.alert = I18n.t('devise.failure.ldap_invalid') url = "new" url_method = 'render' end else puts "=LDAP fail..." - flash.now.alert = t('devise.failure.ldap_connection_failed') + flash.now.alert = I18n.t('devise.failure.ldap_connection_failed') url = "new" url_method = 'render' end