Révision 526f5b11
Ajouté par Renato Botelho il y a presque 10 ans
etc/inc/auth.inc | ||
---|---|---|
1366 | 1366 |
$authcfg = auth_get_authserver($config['system']['webgui']['authmode']); |
1367 | 1367 |
if (authenticate_user($_POST['usernamefld'], $_POST['passwordfld'], $authcfg) || |
1368 | 1368 |
authenticate_user($_POST['usernamefld'], $_POST['passwordfld'])) { |
1369 |
// Generate a new id to avoid session fixation |
|
1369 | 1370 |
session_regenerate_id(); |
1370 | 1371 |
$_SESSION['Logged_In'] = "True"; |
1371 | 1372 |
$_SESSION['Username'] = $_POST['usernamefld']; |
Formats disponibles : Unified diff
Add comment I forgot on last commit