Merge pull request #585 from BelleNottelling/logoff-after-update

Auto Updater: Destroy the current session
This commit is contained in:
Yağızhan authored and GitHub committed 2022-12-13 10:47:11 +03:00
commit d28079766a
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -189,6 +189,11 @@ class Box_Update
$this->di['tools']->emptyFolder(PATH_CACHE);
$this->di['tools']->emptyFolder(PATH_ROOT.'/install');
rmdir(PATH_ROOT.'/install');
// Log off the current user and destroy the session.
$this->di['cookie']->delete('BOXADMR');
$this->di['session']->delete('admin');
session_destroy();
return true;
}
@@ -107,7 +107,7 @@
<p class="text-muted">{{ 'Automatic updater is a tool to update FOSSBilling to latest version in one click. Works on these hosting environments where PHP has permissions to overwrite files uploaded via FTP.'|trans }}</p>
{{ admin.system_release_notes|bbmd }}
<a href="{{ 'api/admin/extension/update_core'|link({ 'CSRFToken': CSRFToken }) }}" class="btn btn-primary api-link" data-api-confirm="Make sure that you have made database and files backups before proceeding with automatic update. Click OK when you are ready to continue." data-api-msg="Update complete">
<a href="{{ 'api/admin/extension/update_core'|link({ 'CSRFToken': CSRFToken }) }}" class="btn btn-primary api-link" data-api-confirm="Make sure that you have made database and files backups before proceeding with automatic update. You will need to log back into your account. Click OK when you are ready to continue." data-api-msg="Update complete. Please refresh your page to login back in.">
<svg class="icon">
<use xlink:href="#refresh" />
</svg>