"login" never occurs

ronnqvist - April 20, 2007 - 16:06
Project:Webserver authentication
Version:5.x-0.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I've noticed that there's never any "login" event marked in the log when using webserver_auth, only logout in case the user pushed that link. This also means trouble if you're using a module utilising hook_user('login'), since the 'login' event never occurs.

(I'm using a patched version for Drupal 5: http://drupal.org/node/109576 )

#1

xamanu - September 3, 2008 - 21:32
Version:HEAD» 5.x-0.0

still doesn't work.
is there a reason for that?
i'd need to use that. would you accept a patch?

#2

xamanu - September 4, 2008 - 15:22

ok. probably we dont want to do this because it would run on every users click, right.

#3

Paul Kishimoto - September 21, 2008 - 19:54

@xamanu: I'm not sure. The 6.x version checks if the user has an ongoing session; if so they are not logged in again. Thus a first page load could be a "login" event; and the remainder would NOT. Also, the fact that webserver_auth 5.x doesn't log the event doesn't mean that the hook isn't fired. An easy way to check this would be to write your own very basic module with an implementation of hook_user('login') that prints some junk via drupal_set_message().

Some background: I wrote the 6.x-1.x branch, which is a substantial rewrite of the module, so I'm not too familiar with the 5.x code.

So, some questions:

  • Can you upgrade to 6.x? If you're lazy, little sympathy. If you're waiting for a port of a crucial module, lots of sympathy.
  • Is this actually against 5.x-0.0? Have you tested with 5.x-1.x-dev?
  • What are you trying to do via hook_user('login')?

#4

xamanu - November 17, 2009 - 12:25
Status:active» closed

thanks for your help. this was solved a long time ago. sorry for not closing this. doing it now.

 
 

Drupal is a registered trademark of Dries Buytaert.