fix error
This commit is contained in:
parent
e5db52e0a0
commit
28cbac6043
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue