|
From: Paul S. O. <ps...@us...> - 2002-02-11 12:42:26
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv30077/includes
Modified Files:
sessions.php
Log Message:
Fix bug #515510 prevent autologin of inactive users
Index: sessions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/sessions.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -r1.51 -r1.52
*** sessions.php 28 Jan 2002 17:57:55 -0000 1.51
--- sessions.php 11 Feb 2002 12:42:23 -0000 1.52
***************
*** 67,71 ****
// + the user_lastvisit ... damn damn damn damn and blast
//
! $sql = "SELECT user_password, user_session_time, user_email
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
--- 67,71 ----
// + the user_lastvisit ... damn damn damn damn and blast
//
! $sql = "SELECT user_password, user_session_time, user_email, user_active
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
***************
*** 82,86 ****
if( $auto_create )
{
! if( isset($sessiondata['autologinid']) )
{
// We have to login automagically
--- 82,86 ----
if( $auto_create )
{
! if( isset($sessiondata['autologinid']) && $row['user_active'] )
{
// We have to login automagically
|