fix error

This commit is contained in:
chiu 2021-02-21 12:16:30 +08:00
parent e5db52e0a0
commit 28cbac6043
1 changed files with 3 additions and 3 deletions

View File

@ -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