mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add logging in case disk space is low and thus login might fail
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
27dbeec29d
commit
66452b40ff
1 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,12 @@ class AuthManager {
|
|||
$date = new DateTime();
|
||||
$dateTime = $date->getTimestamp();
|
||||
$_SESSION['date_time'] = $dateTime;
|
||||
|
||||
$df = disk_free_space(DataConst::GetSessionDirectory());
|
||||
if ($df !== false && (int)$df < 10240) {
|
||||
error_log(DataConst::GetSessionDirectory() . " has only less than 10KB free space. The login might not succeed because of that!");
|
||||
}
|
||||
|
||||
file_put_contents(DataConst::GetSessionDateFile(), (string)$dateTime);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue