Update meta files

This commit is contained in:
James Cole
2020-08-29 12:10:13 +02:00
parent e159de9a6a
commit e5642b59d7
4 changed files with 6 additions and 4 deletions

View File

@@ -306,7 +306,7 @@ class AttachmentHelper implements AttachmentHelperInterface
$content = $fileObject->fread($file->getSize());
Log::debug(sprintf('Full file length is %d and upload size is %d.', strlen($content), $file->getSize()));
// store it:
// store it without encryption.
$this->uploadDisk->put($attachment->fileName(), $content);
$attachment->uploaded = true; // update attachment
$attachment->save();

View File

@@ -112,6 +112,8 @@ class LoginController extends Controller
Log::channel('audit')->info(sprintf('User "%s" has been logged in.', $request->get('email')));
Log::debug(sprintf('Redirect after login is %s.', $this->redirectPath()));
// if you just logged in, it can't be that you have a valid 2FA cookie.
return $this->sendLoginResponse($request);
}