Project

General

Profile

Actions

Defect #8190

closed

login failed with blank page

Added by Georg Leciejewski over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
2011-04-19
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Processing AccountController#login (for 87.79.159.115 at 2011-04-19 13:43:53) [POST]
Parameters: {"back_url"=>"http%3A%2F%2Fpm.salesking.eu%2F", "action"=>"login", "authenticity_token"=>"sometoken", "username"=>"someName", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Anmelden ยป"}

NoMethodError (undefined method `destroy' for {}:Hash):
app/controllers/application_controller.rb:89:in `logged_user='
app/controllers/account_controller.rb:203:in `successful_authentication'
app/controllers/account_controller.rb:155:in `password_authentication'
app/controllers/account_controller.rb:142:in `authenticate_user'
app/controllers/account_controller.rb:30:in `login'

this does not apply to all users


Related issues

Is duplicate of Redmine - Defect #7857: A NoMethodError occurred in account#loginClosed2011-03-14

Actions
Actions #1

Updated by Georg Leciejewski over 13 years ago

r5505

after logging out with the other user he can also not login anymore

Actions #2

Updated by Etienne Massip over 13 years ago

Could you please give more details (see SubmittingBugs) ?

And have a look at #7857 and Can't login.

Actions #3

Updated by Georg Leciejewski over 13 years ago

Sorry .. here are my infos:


About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.7.2
Rack version              1.1
Rails version             2.3.11
Active Record version     2.3.11
Active Resource version   2.3.11
Action Mailer version     2.3.11
Active Support version    2.3.11
Application root          /u/apps/redmine/releases/20110419112527
Environment               production
Database adapter          mysql
Database schema version   20110412065600

About your Redmine plugins
Simple CI             1.0
Redmine Vote plugin   0.0.2
Ticket Mails          0.0.1

Yes, seems to be related to #7857

Actions #4

Updated by Etienne Massip over 13 years ago

You could try to generate a new session store secret with rake generate_session_store to mark every remaining sessions as invalid.

Actions #5

Updated by Georg Leciejewski over 13 years ago

no success with just resetting the session key but applied this monkey-patch, at the end by Rob, in init and now it works:

https://rails.lighthouseapp.com/projects/8994/tickets/6440-session-reset-undefined-method-destroy-for-hash

Actions #6

Updated by Etienne Massip over 13 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Closed as duplicate of #7857.

Actions #7

Updated by Georg Leciejewski over 13 years ago

i was probably too fast, this fix does not solve the problem.

Actions

Also available in: Atom PDF