Project

General

Profile

Users can't sign out

Added by Mathew Waldrop over 12 years ago

Rails 2.3.14
Ruby 1.8.7

Redmine 1.3
Mongrel 1.1.5

Okay so all the users are incapable of signing out of the accounts. Previously I was having issues with authentication and the maching not saving the cookie so in the mongrel-1.1.5-x86-mingw32\lib\mongrel\cg.rb:51

Heather Kennedy['cookie'] = options['cookie'] if options['cookie']
options.delete('cookie')

before:

REMOVED_KEYS.each {|k| options.delete(k) }

and now users can log in but can't log out. I don't know how to read the coding so i don't know if the new wat prevents the log out process. also here is the log info from Redmine\log\development.log

This is what happens when one clicks Sign out.

Processing AccountController#logout (for 192.168.1.167 at 2011-12-22 16:04:44) [GET]
Parameters: {"action"=>"logout", "controller"=>"account"}
[4;35;1mSetting Columns (0.0ms)[0m [0mSHOW FIELDS FROM `settings`[0m
[4;36;1mSQL (0.0ms)[0m [0;1mSELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` [0m
[4;35;1mUser Columns (0.0ms)[0m [0mSHOW FIELDS FROM `users`[0m
[4;36;1mUser Load (0.0ms)[0m [0;1mSELECT * FROM `users` WHERE (`users`.`id` = 1) AND (users.status = 1) AND ( (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) ) [0m
[4;35;1mToken Delete all (0.0ms)[0m [0mDELETE FROM `tokens` WHERE (user_id = 1 AND action = 'autologin') [0m
[4;36;1mAnonymousUser Columns (15.6ms)[0m [0;1mSHOW FIELDS FROM `users`[0m
[4;35;1mAnonymousUser Load (0.0ms)[0m [0mSELECT * FROM `users` WHERE ( (`users`.`type` = 'AnonymousUser' ) ) LIMIT 1[0m
Redirected to http://192.168.1.7:3000/
Completed in 78ms (DB: 16) | 302 Found [http://192.168.1.7/logout]
[4;36;1mSQL (0.0ms)[0m [0;1mSET NAMES 'utf8'[0m
[4;35;1mSQL (0.0ms)[0m [0mSET SQL_AUTO_IS_NULL=0[0m

Processing WelcomeController#index (for 192.168.1.167 at 2011-12-22 16:04:46) [GET]
Parameters: {"action"=>"index", "controller"=>"welcome"}
[4;36;1mSetting Columns (0.0ms)[0m [0;1mSHOW FIELDS FROM `settings`[0m
[4;35;1mSQL (0.0ms)[0m [0mSELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` [0m
[4;36;1mUser Columns (15.6ms)[0m [0;1mSHOW FIELDS FROM `users`[0m
[4;35;1mUser Load (0.0ms)[0m [0mSELECT * FROM `users` WHERE (`users`.`id` = 1) AND (users.status = 1) AND ( (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) ) [0m
[4;36;1mNews Columns (15.6ms)[0m [0;1mSHOW FIELDS FROM `news`[0m
[4;35;1mProject Columns (0.0ms)[0m [0mSHOW FIELDS FROM `projects`[0m
[4;36;1mNews Load Including Associations (0.0ms)[0m [0;1mSELECT `news`.`id` AS t0_r0, `news`.`project_id` AS t0_r1, `news`.`title` AS t0_r2, `news`.`summary` AS t0_r3, `news`.`description` AS t0_r4, `news`.`author_id` AS t0_r5, `news`.`created_on` AS t0_r6, `news`.`comments_count` AS t0_r7, `users`.`id` AS t1_r0, `users`.`login` AS t1_r1, `users`.`hashed_password` AS t1_r2, `users`.`firstname` AS t1_r3, `users`.`lastname` AS t1_r4, `users`.`mail` AS t1_r5, `users`.`admin` AS t1_r6, `users`.`status` AS t1_r7, `users`.`last_login_on` AS t1_r8, `users`.`language` AS t1_r9, `users`.`auth_source_id` AS t1_r10, `users`.`created_on` AS t1_r11, `users`.`updated_on` AS t1_r12, `users`.`type` AS t1_r13, `users`.`identity_url` AS t1_r14, `users`.`mail_notification` AS t1_r15, `users`.`salt` AS t1_r16, `projects`.`id` AS t2_r0, `projects`.`name` AS t2_r1, `projects`.`description` AS t2_r2, `projects`.`homepage` AS t2_r3, `projects`.`is_public` AS t2_r4, `projects`.`parent_id` AS t2_r5, `projects`.`created_on` AS t2_r6, `projects`.`updated_on` AS t2_r7, `projects`.`identifier` AS t2_r8, `projects`.`status` AS t2_r9, `projects`.`lft` AS t2_r10, `projects`.`rgt` AS t2_r11 FROM `news` LEFT OUTER JOIN `users` ON `users`.id = `news`.author_id AND (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) LEFT OUTER JOIN `projects` ON `projects`.id = `news`.project_id WHERE (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='news')) ORDER BY news.created_on DESC LIMIT 5[0m
[4;35;1mProject Load (0.0ms)[0m [0mSELECT * FROM `projects` WHERE (projects.status=1) ORDER BY created_on DESC LIMIT 5[0m
Rendering template within layouts/base
Rendering welcome/index
[4;36;1mSetting Load (0.0ms)[0m [0;1mSELECT * FROM `settings` WHERE (`settings`.`name` = 'welcome_text') LIMIT 1[0m
[4;35;1mSetting Load (0.0ms)[0m [0mSELECT * FROM `settings` WHERE (`settings`.`name` = 'ui_theme') LIMIT 1[0m
[4;36;1mToken Load (0.0ms)[0m [0;1mSELECT * FROM `tokens` WHERE (`tokens`.user_id = 1 AND (action='feeds')) LIMIT 1[0m
[4;35;1mToken Columns (0.0ms)[0m [0mSHOW FIELDS FROM `tokens`[0m
[4;36;1mSetting Load (0.0ms)[0m [0;1mSELECT * FROM `settings` WHERE (`settings`.`name` = 'app_title') LIMIT 1[0m
[4;35;1mUserPreference Load (0.0ms)[0m [0mSELECT * FROM `user_preferences` WHERE (`user_preferences`.user_id = 1) LIMIT 1[0m
[4;36;1mUserPreference Columns (0.0ms)[0m [0;1mSHOW FIELDS FROM `user_preferences`[0m
[4;35;1mMember Columns (15.6ms)[0m [0mSHOW FIELDS FROM `members`[0m
[4;36;1mRole Columns (0.0ms)[0m [0;1mSHOW FIELDS FROM `roles`[0m
[4;35;1mMember Load Including Associations (0.0ms)[0m [0mSELECT `members`.`id` AS t0_r0, `members`.`user_id` AS t0_r1, `members`.`project_id` AS t0_r2, `members`.`created_on` AS t0_r3, `members`.`mail_notification` AS t0_r4, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft`