From d9c1c752bdb140cb45d71b4e126314b91895bd77 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 28 Nov 2026 23:31:17 -0500 Subject: [PATCH] Passkeys: agents and client portal contacts can add a passkey with their password and sign in with it instead of their email and password, counting as two-step sign-in; a passkey that supports PRF also opens an agent's credential vault, otherwise credentials stay locked until they type their password once; admins can turn passkeys off in Security settings, and resetting MFA, turning off a contact's two-step sign-in, archiving an agent and the incident password reset remove them; database 4.2.2 adds user_passkeys, users.user_passkey_handle and settings.config_login_passkeys, and lbuchs/WebAuthn 2.2.0 is bundled in libs/webauthn --- CHANGELOG.md | 23 + admin/database_updates/4.2.2.php | 49 ++ admin/modals/user/user_form.php | 5 +- admin/post/portal_users.php | 7 + admin/post/settings_security.php | 14 +- admin/post/users.php | 24 +- admin/settings_security.php | 14 +- admin/users.php | 12 +- agent/ajax.php | 42 ++ agent/contact.php | 10 +- agent/modals/credential/credential_add.php | 4 +- agent/modals/credential/credential_edit.php | 4 +- agent/modals/credential/credential_rotate.php | 4 +- agent/post/contact.php | 10 + agent/user/mfa_enforcement.php | 4 + agent/user/modals/user_passkey_modal.php | 52 ++ agent/user/post/profile.php | 75 ++ agent/user/user_security.php | 53 +- client/includes/check_login.php | 4 +- client/post.php | 74 ++ client/profile.php | 62 ++ db.sql | 29 + functions.php | 1 + functions/credential.php | 7 +- functions/email_preview.php | 8 + functions/passkey.php | 457 +++++++++++ functions/portal.php | 7 +- functions/security.php | 7 +- functions/settings.php | 3 +- includes/footer.php | 34 + includes/load_user_session.php | 5 +- js/credentials.js | 81 +- js/passkey.js | 299 ++++++++ libs/webauthn/LICENSE | 22 + .../src/Attestation/AttestationObject.php | 179 +++++ .../src/Attestation/AuthenticatorData.php | 501 ++++++++++++ .../src/Attestation/Format/AndroidKey.php | 96 +++ .../Attestation/Format/AndroidSafetyNet.php | 152 ++++ .../webauthn/src/Attestation/Format/Apple.php | 139 ++++ .../src/Attestation/Format/FormatBase.php | 193 +++++ libs/webauthn/src/Attestation/Format/None.php | 41 + .../src/Attestation/Format/Packed.php | 139 ++++ libs/webauthn/src/Attestation/Format/Tpm.php | 180 +++++ libs/webauthn/src/Attestation/Format/U2f.php | 93 +++ libs/webauthn/src/Binary/ByteBuffer.php | 300 ++++++++ libs/webauthn/src/CBOR/CborDecoder.php | 220 ++++++ libs/webauthn/src/WebAuthn.php | 714 ++++++++++++++++++ libs/webauthn/src/WebAuthnException.php | 28 + login.php | 81 +- login_passkey.php | 163 ++++ 50 files changed, 4679 insertions(+), 46 deletions(-) create mode 100644 admin/database_updates/4.2.2.php create mode 100644 agent/user/modals/user_passkey_modal.php create mode 100644 functions/passkey.php create mode 100644 js/passkey.js create mode 100644 libs/webauthn/LICENSE create mode 100644 libs/webauthn/src/Attestation/AttestationObject.php create mode 100644 libs/webauthn/src/Attestation/AuthenticatorData.php create mode 100644 libs/webauthn/src/Attestation/Format/AndroidKey.php create mode 100644 libs/webauthn/src/Attestation/Format/AndroidSafetyNet.php create mode 100644 libs/webauthn/src/Attestation/Format/Apple.php create mode 100644 libs/webauthn/src/Attestation/Format/FormatBase.php create mode 100644 libs/webauthn/src/Attestation/Format/None.php create mode 100644 libs/webauthn/src/Attestation/Format/Packed.php create mode 100644 libs/webauthn/src/Attestation/Format/Tpm.php create mode 100644 libs/webauthn/src/Attestation/Format/U2f.php create mode 100644 libs/webauthn/src/Binary/ByteBuffer.php create mode 100644 libs/webauthn/src/CBOR/CborDecoder.php create mode 100644 libs/webauthn/src/WebAuthn.php create mode 100644 libs/webauthn/src/WebAuthnException.php create mode 100644 login_passkey.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a540d15a..56cc53257 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,29 @@ This file documents all notable changes made to ITFlow. +## [26.12.3] + +### Upgrading to 26.12.3 + +Update from Maintenance > Update as usual - this release has one database change (4.2.2), which adds a table for passkeys and a setting to turn them on or off. Nothing else is required: passkeys are on, and no one has one until they add it. A passkey is made for your ITFlow's address (the one in config.php) and only works there, over HTTPS - if you move ITFlow to a new address, everyone adds theirs again. + +### New Features & Updates + +- Passkeys: agents and client portal contacts can sign in with a passkey - their fingerprint, face or PIN, with the passkey kept on their computer, their phone, a security key or their password manager - instead of their email and password. They add one, with their password, from Your account > Security (agents) or Your account in the client portal. Then they click Sign in with a passkey on the sign-in page, or pick it as the browser offers it in the email box. +- Passkeys count as two-step sign-in: signing in with one doesn't ask for an authenticator code, and it meets a role's or the client portal's requirement for two-step sign-in. An agent who signs in with their password still needs their code as before. +- Passkeys and credentials: a passkey that supports it (most current ones do) also opens an agent's credentials when they sign in with it. One that doesn't still signs them in, but usernames, passwords and 2FA codes are locked - the first one they open asks for their password, once, until they sign out. Each passkey in Your account > Security says which kind it is. +- Admin > Settings > Security has a Passkeys switch, on. Off, passkeys already added are kept but don't sign anyone in until it's on again. +- Resetting an agent's MFA (Admin > Users) or turning off a contact's two-step sign-in also removes their passkeys, for a lost or replaced device, and so do archiving an agent and resetting every agent's password. Agents and contacts are emailed when a passkey is added to or removed from their account, failed passkey sign-ins count towards the same lockout as passwords, and both show in the sign-in log. + +### Developer Updates + +- Database 4.2.2: user_passkeys (each passkey's credential id and the SHA-256 of it to find it by, its public key, signature count, AAGUID, transports, whether it is synced, and for an agent a copy of the vault key sealed by the passkey's PRF output - AES-256-GCM under HKDF-SHA256, bound to the credential), users.user_passkey_handle (the random WebAuthn user handle) and settings.config_login_passkeys. +- WebAuthn is checked by lbuchs/WebAuthn 2.2.0 (MIT) in libs/webauthn, with user verification required and attestation none; the origin is also matched exactly against config_base_url, as the library only checks the end of the host name. functions/passkey.php holds the challenges (session, five minutes, single use), registration, the sign-in check and the vault copy. +- Signing in: login_passkey.php answers the options and checks the browser's answer (JSON), then login.php's passkey_login step signs them in through its usual success path - the same as after a two-step code, session regeneration and new-device email included. js/passkey.js draws the button, offers passkeys in the email box (conditional mediation, never retried in a loop) and runs the add forms. +- A locked vault: vaultLocked() and vaultUnlock(), with get_credential_via_id and get_totp_token_via_id in agent/ajax.php answering {locked}, and js/credentials.js opening the Unlock window (includes/footer.php). New calls: passkey_create_options and vault_unlock in agent/ajax.php; add_your_passkey and delete_your_passkey for agents; passkey_create_options, portal_passkey_add and portal_passkey_remove in client/post.php. The password checks for adding a passkey and unlocking are limited to five wrong ones in ten minutes per account (Password Failed). +- $_SESSION['signed_in_with'] ('passkey' or 'password') lets includes/load_user_session.php and client/includes/check_login.php leave MFA enforcement out for a passkey sign-in. +- generateUserSessionKey() reads config.php by its own path, so it works from agent/ as well as the root folder. + ## [26.12.2] ### Upgrading to 26.12.2 diff --git a/admin/database_updates/4.2.2.php b/admin/database_updates/4.2.2.php new file mode 100644 index 000000000..ebc2d4894 --- /dev/null +++ b/admin/database_updates/4.2.2.php @@ -0,0 +1,49 @@ + 0; $form_has_avatar = trim((string) ($form['user_avatar'] ?? '')) !== ''; $form_access = $form_user_id ? userClientAccess([$form_user_id])[$form_user_id] : ['allow' => [], 'deny' => []]; $form_invites = $is_new && userInvitesReady(); @@ -170,7 +173,7 @@ $value = function ($key) use ($form) {
-
For a lost or replaced phone - their authenticator app is forgotten, and so are their remembered browsers.
+
For a lost or replaced phone - their authenticator app is forgotten, and so are their remembered browsers.
diff --git a/admin/post/portal_users.php b/admin/post/portal_users.php index 68add8368..fd178d87b 100644 --- a/admin/post/portal_users.php +++ b/admin/post/portal_users.php @@ -99,6 +99,10 @@ if (isset($_GET['portal_user_reset_mfa'])) { $row = portalUserForRequest($_GET['portal_user_reset_mfa']); portalMfaReset($row['user_id']); + // Their passkeys count as two-step sign-in, and go too (functions/passkey.php) + if (passkeysReady()) { + passkeysForget($row['user_id']); + } logAudit("Contact", "Edit", "$session_name turned off two-step sign-in for " . escapeSql($row['contact_name']) . " in the client portal", $row['client_id'], $row['contact_id']); portalMailAccountChange($row['user_email'], $row['contact_name'], 'mfa_off_by_us'); @@ -198,6 +202,9 @@ if (isset($_POST['bulk_portal_reset_mfa'])) { continue; } portalMfaReset($user_id); + if (passkeysReady()) { + passkeysForget($user_id); + } logAudit("Contact", "Edit", "$session_name turned off two-step sign-in for " . escapeSql($row['contact_name']) . " in the client portal", $row['client_id'], $row['contact_id']); portalMailAccountChange($row['user_email'], $row['contact_name'], 'mfa_off_by_us'); $count++; diff --git a/admin/post/settings_security.php b/admin/post/settings_security.php index c4d3596fe..591f9001e 100644 --- a/admin/post/settings_security.php +++ b/admin/post/settings_security.php @@ -3,8 +3,9 @@ /* * Admin > Settings > Security (admin/settings_security.php): * edit_security_settings saves the sign-in page's message and login key, how - * long a browser is remembered, when admins hear of failed sign-ins, whether - * the API takes a key in the address, and shared links. A login key required with none set - which would leave + * long a browser is remembered, whether passkeys sign people in, when admins + * hear of failed sign-ins, whether the API takes a key in the address, and + * shared links. A login key required with none set - which would leave * agents no way in but the database - is refused, as is a key that couldn't * be typed into an address, or a time out of range. Nothing is saved then. * A choice not offered settles to the usual one. @@ -16,8 +17,10 @@ if (isset($_POST['edit_security_settings'])) { validateCSRFToken(); - $before = settingsCurrent(['config_login_message', 'config_login_key_required', 'config_login_key_secret', 'config_login_remember_me_expire', - 'config_login_alert_failures', 'config_api_key_in_address', 'config_share_max_hours', 'config_share_require_protection']); + $before = settingsCurrent(array_merge(['config_login_message', 'config_login_key_required', 'config_login_key_secret', 'config_login_remember_me_expire', + 'config_login_alert_failures', 'config_api_key_in_address', 'config_share_max_hours', 'config_share_require_protection'], + // Passkeys, once the database has them (functions/passkey.php) + passkeysReady() ? ['config_login_passkeys'] : [])); // What was sent, and what is saved for anything that wasn't - a switch not sent is off $in = $_POST + array_map(function ($value) { return (string) $value; }, $before); @@ -32,6 +35,9 @@ if (isset($_POST['edit_security_settings'])) { 'config_share_max_hours' => intval($in['config_share_max_hours']), 'config_share_require_protection' => empty($_POST['config_share_require_protection']) ? 0 : 1, ]; + if (array_key_exists('config_login_passkeys', $before)) { + $after['config_login_passkeys'] = empty($_POST['config_login_passkeys']) ? 0 : 1; + } $errors = []; if ($after['config_login_key_secret'] !== '' && !preg_match('/^\w{3,99}$/', $after['config_login_key_secret'])) { diff --git a/admin/post/users.php b/admin/post/users.php index 5ec11d460..e8fcced19 100644 --- a/admin/post/users.php +++ b/admin/post/users.php @@ -285,10 +285,14 @@ if (isset($_POST['edit_user'])) { $changes[] = 'password changed'; userNotifyChange($name, $email, 'an administrator set a new password'); } - if (!empty($_POST['reset_mfa']) && trim((string) $row['user_token']) !== '') { + if (!empty($_POST['reset_mfa']) && (trim((string) $row['user_token']) !== '' || (passkeysReady() && passkeyCount($user_id)))) { userResetMfa($user_id); + $passkeys_removed = passkeysReady() ? passkeysForget($user_id) : 0; + if ($passkeys_removed) { + $changes[] = 'passkeys removed'; + } $changes[] = 'MFA reset'; - userNotifyChange($name, $email, 'an administrator turned off multi-factor authentication' . ($force_mfa ? ' - you will set it up again at your next sign in' : '')); + userNotifyChange($name, $email, 'an administrator turned off multi-factor authentication' . ($passkeys_removed ? ' and removed your passkeys' : '') . ($force_mfa ? ' - you will set it up again at your next sign in' : '')); } if (strcasecmp($email, $row['user_email']) !== 0) { $changes[] = 'email changed'; @@ -388,9 +392,11 @@ if (isset($_GET['reset_user_mfa'])) { $user_id = intval($row['user_id']); userResetMfa($user_id); - userNotifyChange($row['user_name'], $row['user_email'], 'an administrator turned off multi-factor authentication' . (intval($row['user_config_force_mfa']) ? ' - you will set it up again at your next sign in' : '')); + // Their passkeys count as MFA, and go too (functions/passkey.php) + $passkeys_removed = passkeysReady() ? passkeysForget($user_id) : 0; + userNotifyChange($row['user_name'], $row['user_email'], 'an administrator turned off multi-factor authentication' . ($passkeys_removed ? ' and removed your passkeys' : '') . (intval($row['user_config_force_mfa']) ? ' - you will set it up again at your next sign in' : '')); - logAudit("User", "Edit", "$session_name reset MFA for user " . escapeSql($row['user_name']), 0, $user_id); + logAudit("User", "Edit", "$session_name reset MFA for user " . escapeSql($row['user_name']) . ($passkeys_removed ? " and removed their passkeys" : ''), 0, $user_id); flashAlert("MFA reset for " . $row['user_name'] . "" . (intval($row['user_config_force_mfa']) ? ' - they set it up again at their next sign in' : ' - they sign in with their password alone until they turn it on')); @@ -418,6 +424,9 @@ if (isset($_POST['archive_user'])) { $scrambled = escapeSql(password_hash(randomString(), PASSWORD_DEFAULT)); mysqli_query($mysqli, "UPDATE users SET user_name = '$archived_name', user_password = '$scrambled', user_status = 0, user_specific_encryption_ciphertext = '', user_archived_at = NOW() WHERE user_id = $user_id"); mysqli_query($mysqli, "DELETE FROM remember_tokens WHERE remember_token_user_id = $user_id"); + if (passkeysReady()) { + passkeysForget($user_id); + } logAudit("User", "Archive", "$session_name archived user " . escapeSql($row['user_name']), 0, $user_id); @@ -653,12 +662,15 @@ if (isset($_POST['ir_reset_user_password'])) { while ($row = mysqli_fetch_assoc($sql_users)) { $new_password = generateReadablePassword(4); userSetPassword($row['user_id'], $new_password); - // A remembered browser would skip their MFA code - in an incident, it must not + // A remembered browser would skip their MFA code, and a passkey their password - in an incident, neither must mysqli_query($mysqli, "DELETE FROM remember_tokens WHERE remember_token_user_id = " . intval($row['user_id'])); + if (passkeysReady()) { + passkeysForget($row['user_id']); + } $reset[] = $row + ['password' => $new_password]; } - logAudit("User", "Edit", "$session_name reset the passwords of " . count($reset) . " agent(s) and forgot their remembered browsers (incident response)"); + logAudit("User", "Edit", "$session_name reset the passwords of " . count($reset) . " agent(s) and forgot their remembered browsers and passkeys (incident response)"); // Shown once, not kept - a plain page to read out or copy, and nothing else on it header('Cache-Control: no-store'); diff --git a/admin/settings_security.php b/admin/settings_security.php index c33828a65..f3d8db543 100644 --- a/admin/settings_security.php +++ b/admin/settings_security.php @@ -3,8 +3,8 @@ /* * Admin > Settings > Security - the sign-in page (its message, and a login * key agents need in its address), how long two-step sign-in remembers a - * device, when admins hear of failed sign-ins, whether the API takes a key in - * the address, and shared links. Saved by + * device, whether passkeys sign people in, when admins hear of failed sign-ins, + * whether the API takes a key in the address, and shared links. Saved by * edit_security_settings (admin/post/settings_security.php). */ @@ -13,6 +13,10 @@ require_once "includes/inc_all_admin.php"; // Read here rather than with every page's settings, so a page still opens before the update that adds it $config_login_alert_failures = signInAlertLimit(); $config_api_key_in_address = apiKeyInAddressAccepted() ? 1 : 0; +// Passkeys, once the database has them (functions/passkey.php) +$passkeys_ready = passkeysReady(); +$config_login_passkeys = passkeysOn() ? 1 : 0; +$passkey_address = passkeyRp()['address']; $login_url = rtrim('https://' . preg_replace('#^https?://#', '', (string) $config_base_url), '/') . '/login.php?key='; $login_key_shown = (string) settingsValue('config_login_key_secret', $config_login_key_secret); @@ -44,6 +48,12 @@ echo settingsPageStart('security'); 'suffix' => 'days', 'help' => 'Each agent can see and forget their remembered browsers in their own Security settings.']) ?> + + + 'Off, passkeys already added are kept, but don\'t sign anyone in until it is on again.']) ?> + + + 'fa-bell', 'help' => 'Each admin gets a notification and an email.']) ?> diff --git a/admin/users.php b/admin/users.php index ae750b9a2..990d25d2a 100644 --- a/admin/users.php +++ b/admin/users.php @@ -32,6 +32,8 @@ if (($_GET['canned_date'] ?? '') === 'custom' && empty($_GET['dtf'])) { } $roles = userRoles(); +// Who has passkeys - resetting two-step sign-in takes them away too (functions/passkey.php) +$passkey_counts = passkeyCounts(); $role_filter = isset($roles[intval($_GET['role'] ?? 0)]) ? intval($_GET['role']) : 0; // The search is for the side being looked at - agents and their invites, or portal users - and leaves the other side's counts alone @@ -435,6 +437,7 @@ $csrf = $_SESSION['csrf_token']; $is_on = $off_why === ''; $is_local = $row['user_auth_method'] === 'local'; $has_mfa = trim((string) $row['user_token']) !== ''; + $has_passkeys = !empty($passkey_counts[$user_id]); $can_turn_on = !$is_on && empty($row['client_archived_at']) && empty($row['contact_archived_at']); $name = escapeHtml($row['contact_name']); $contact_url = "/agent/contact.php?client_id=$client_id&contact_id=$contact_id"; @@ -515,9 +518,9 @@ $csrf = $_SESSION['csrf_token']; - + Turn Off Two-step Sign-in @@ -694,6 +697,7 @@ $csrf = $_SESSION['csrf_token']; $is_active = intval($row['user_status']) === 1 && !$is_archived; $is_admin = intval($row['role_is_admin']) === 1; $has_mfa = trim((string) $row['user_token']) !== ''; + $has_passkeys = !empty($passkey_counts[$user_id]); $display_name = $is_archived ? trim(str_replace(' (archived)', '', $row['user_name'])) : $row['user_name']; $name = escapeHtml($display_name); $quick_url = "modals/user/user.php?id=$user_id"; @@ -788,9 +792,9 @@ $csrf = $_SESSION['csrf_token']; Edit - + Reset MFA diff --git a/agent/ajax.php b/agent/ajax.php index 5028d117e..6df62de23 100644 --- a/agent/ajax.php +++ b/agent/ajax.php @@ -27,6 +27,38 @@ if (isset($_POST['invoice_bulk_set'])) { exit; } +/* + * Adding a passkey in Your account > Security (js/passkey.js, functions/passkey.php): their password + * checked first, so a typo doesn't leave a passkey on their device that doesn't work here - then + * what to ask the browser for. The passkey itself comes back with the form, to add_your_passkey. + */ +if (isset($_POST['passkey_create_options'])) { + validateCSRFToken(); + header('Content-Type: application/json'); + if (!passkeysOn()) { + http_response_code(403); + exit(json_encode(['error' => 'Passkeys are turned off.'])); + } + [$password_ok, $password_message, $me] = passkeyPasswordCheck($session_user_id, (string) ($_POST['current_password'] ?? ''), 'add a passkey'); + if (!$password_ok) { + exit(json_encode(['error' => $password_message])); + } + echo json_encode(passkeyCreateOptions($session_user_id, $me['user_email'], $me['user_name'])); + exit; +} + +/* + * Unlocking the credentials with your password - after a passkey sign-in that couldn't open the + * vault (vaultUnlock()). The vault session's cookie comes back with the answer. + */ +if (isset($_POST['vault_unlock'])) { + validateCSRFToken(); + header('Content-Type: application/json'); + [$unlocked, $unlock_message] = vaultUnlock($session_user_id, (string) ($_POST['password'] ?? '')); + echo json_encode($unlocked ? ['unlocked' => true] : ['error' => $unlock_message]); + exit; +} + /* * The host in a New / Edit Certificate form, checked when asked: connect, * take the certificate it serves and say what it is - OK, for another name, @@ -1930,6 +1962,11 @@ if (isset($_GET['get_totp_token_via_id'])) { enforceUserPermission('module_credential'); + // Signed in with a passkey that couldn't open the vault - their password unlocks it (js/credentials.js) + if (vaultLocked()) { + exit(json_encode(['locked' => true])); + } + $credential_id = intval($_GET['credential_id']); $sql = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT credential_name, credential_otp_secret, credential_client_id FROM credentials WHERE credential_id = $credential_id")); @@ -3002,6 +3039,11 @@ if (isset($_GET['get_credential_via_id'])) { enforceUserPermission('module_credential'); + // Signed in with a passkey that couldn't open the vault - their password unlocks it (js/credentials.js) + if (vaultLocked()) { + exit(json_encode(['locked' => true])); + } + $credential_id = intval($_GET['credential_id']); $sql = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT credential_name, credential_username, credential_password, credential_client_id FROM credentials WHERE credential_id = $credential_id")); diff --git a/agent/contact.php b/agent/contact.php index 9a181354f..5dcbda72d 100644 --- a/agent/contact.php +++ b/agent/contact.php @@ -68,6 +68,8 @@ $contact_mobile_copy = escapeHtml(formatPhoneNumber($row['contact_mobile'], $row $contact_dial = $row['contact_phone'] ? 'phone' : ($row['contact_mobile'] ? 'mobile' : ''); $contact_portal = contactPortalAccess($row['contact_user_id'], $row['user_auth_method']); $contact_portal_mfa = $contact_portal === 'Password' && trim((string) $row['user_token']) !== ''; +// Their passkeys count as two-step sign-in (functions/passkey.php) +$contact_portal_passkeys = $contact_portal === 'Password' && passkeysReady() ? passkeyCount($row['contact_user_id']) : 0; $contact_portal_last = $contact_portal ? portalContactLastSignIn($row['contact_user_id']) : null; // How they joined, when it was by an invite or signing up (functions/portal_invite.php) $contact_portal_joined = $contact_portal ? portalContactJoined($contact_id) : null; @@ -412,20 +414,20 @@ if (!$can_support) {
Portal
- $contact_portal" . ($contact_portal_mfa ? ' and a code' : '') . "" : 'No access' ?> + $contact_portal" . ($contact_portal_mfa ? ' and a code' : '') . ($contact_portal_passkeys ? ', or a passkey' : '') . "" : 'No access' ?>
' . timeAgo($contact_portal_last) . '' : 'Has not signed in yet' ?>
on
- + diff --git a/agent/modals/credential/credential_add.php b/agent/modals/credential/credential_add.php index e1fa92a39..a0ae76136 100644 --- a/agent/modals/credential/credential_add.php +++ b/agent/modals/credential/credential_add.php @@ -49,7 +49,9 @@ ob_start();