diff options
Diffstat (limited to 'src/zenhttp/auth/authmgr.cpp')
| -rw-r--r-- | src/zenhttp/auth/authmgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenhttp/auth/authmgr.cpp b/src/zenhttp/auth/authmgr.cpp index a520e8fd1..bf151ce6d 100644 --- a/src/zenhttp/auth/authmgr.cpp +++ b/src/zenhttp/auth/authmgr.cpp @@ -9,6 +9,7 @@ #include <zencore/filesystem.h> #include <zencore/logging.h> #include <zenhttp/auth/oidc.h> +#include <zenutil/basicfile.h> #include <condition_variable> #include <memory> @@ -76,7 +77,7 @@ namespace details { return; } - WriteFile(Path, IoBuffer(IoBuffer::Wrap, EncryptedView.GetData(), EncryptedView.GetSize())); + TemporaryFile::SafeWriteFile(Path, EncryptedView); } } // namespace details |