martin-denizet / redmine_login_audit

Redmine plugin to log successful login attempts in Redmine
44 stars 30 forks source link

redmine 2.3.3 login failed #1

Closed archonwang closed 11 years ago

archonwang commented 11 years ago

install the plugin , then started the redmine again .

when I login, there'a an error as follows.


Started POST "/login" for 192.168.100.15 at 2013-10-17 14:42:06 +0800 Processing by AccountController#login as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"OpB5k8hLmeWu7IRzdfd0UXYjIECYxKDy5s4Voqn0vdY=", "back_url"=>"http://192.168.2.135:3000/", "username"=>"wanghui", "password"=>"[FILTERED]", "login"=>"Login »"} Current user: anonymous Successful authentication for 'wanghui' from 192.168.100.15 at 2013-10-17 06:42:06 UTC Completed 500 Internal Server Error in 96ms

NoMethodError (undefined method empty?' for nil:NilClass): lib/redmine/hook.rb:61:inblock (2 levels) in call_hook' lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:inblock in call_hook' lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:incall_hook' lib/redmine/hook.rb:153:in call_hook' app/controllers/account_controller.rb:229:insuccessful_authentication' app/controllers/account_controller.rb:174:in password_authentication' app/controllers/account_controller.rb:161:inauthenticate_user' app/controllers/account_controller.rb:32:in `login'


Environment: Redmine version 2.3.3.stable.12220 Ruby version 1.9.3-p448 (2013-06-27) [x86_64-linux] Rails version 3.2.13 Environment production Database adapter Mysql2

martin-denizet commented 11 years ago

It happened when the settings were not created yet. Fixed in 0.1.1. Thanks you!