Skip to content

Commit

Permalink
FIX Last Visit date not updated after user logged in (#12)
Browse files Browse the repository at this point in the history
* FIX Last Visit date not updated after user logged

We have developed custom cronjob to disable user who not logged in after some time after creating (by checking `ezuservisit` table).
But, Last Visit date not updated if user logged in providing old and new passwords in this module (userpaex/password).
I believe it should be updated in the same way as in standard "user/login" module.

* Update login count after update password authorization

Co-Authored-By: Gunnstein Lye <[email protected]>
  • Loading branch information
2 people authored and andrerom committed Jan 9, 2020
1 parent 7d75890 commit 069a993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/userpaex/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
$oldPassword = '';

eZUser::setCurrentlyLoggedInUser( $user, $UserID );
eZUser::updateLastVisit( $UserID, true );

if ( $http->hasPostVariable( "RedirectOnChange" ) )
{
Expand Down

0 comments on commit 069a993

Please sign in to comment.