Skip to content

Commit

Permalink
Merge pull request #4 from connortechnology/regenerate_session
Browse files Browse the repository at this point in the history
On successful login, tell php to regenerate the session id
  • Loading branch information
kylejohnson authored Jan 12, 2017
2 parents 1c948d5 + 794043c commit a0958f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function userLogin( $username, $password="", $passwordHashed=false ) {
if ( ZM_AUTH_TYPE == "builtin" ) {
$_SESSION['passwordHash'] = $user['Password'];
}
session_regenerate_id();
} else {
Warning( "Login denied for user \"$username\"" );
$_SESSION['loginFailed'] = true;
Expand Down

0 comments on commit a0958f9

Please sign in to comment.