* Added ability to change favicon in config
* Turned back version of icon in index.twig
* Added opportunity to upload favicon and route to get saved favicon
* Removed favicon from .codexdocsrc.sample
* Added docs to favicon route
* Replaced uploadFavicon to initiating /favicon route, updated function, added catching errors from uploadFile
* Updated Readme, added info about setting up app
* Updated Readme.md
* Some changes
* Favicon data saves to app.locals, replaced uploading favicon to app.ts
* Changed naming in config, from faviconURL to favicon, changed using app.locals variables
* Renamed uploadFavicon to downLoadFavicon, removed log in locals.ts
* Renamed favicon variable in app.ts
* Added checking favicon before uploading function, removed passing locals to views
* Added timeout for uploading favicon request and writeFileSync changed to writeFile
* Removed passing favicon locals and turned back removed variables
* Turned back variables
* Fixed duplicating os.tmpdir
* Fixed braces in objects, added new lines
* Added default favicon path, if favicon does not exists in config
* Updated docs, fixed using local favicon
* Use absolute paths for uploads and db
* Fix name interference
* Add error on auth page
* remove space
* Support of separated upload folder with absolute path
* fix files uploading
* remove log
* fix comment
Co-authored-by: n0str <team@codex.so>
Co-authored-by: Nikita Melnikov <nikmel2803@gmail.com>
* Authorization added
* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized
* added dbinsert script
* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form
* added middlewares, user model and controller
* JSDoc fix
* wrong password processing fix
* added comments to dbinsert script, moved salt and passHash to singe db doc
* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc
* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie