Skip to content

Commit

Permalink
Added logging of Registration and Login attempts to Database (#74)
Browse files Browse the repository at this point in the history
* Added logging of Registration and Login attempts to Database

I created a schema for "Log" which adds the current time along with topic and message. I created logging for registration and login attempts.

* Add txt output and audit database

Logs will be output to both (new) audit database as well as audit.txt, will create if it doesn't exist. Database restructured to support multiple binding databases.

---------

Co-authored-by: ShaneD <[email protected]>
  • Loading branch information
alkatra and SDzartov authored Nov 25, 2023
1 parent 6052f78 commit 9761491
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions neo_dolfin/audit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[2023-11-24 17:09:33] login-fail: Failed login attempt for user admin
[2023-11-24 17:09:38] login-fail: Failed login attempt for user admin
[2023-11-24 17:09:41] login-fail: Failed login attempt for user admin
[2023-11-24 17:10:00] register: User admin registered
[2023-11-24 17:10:03] login: User admin logged in
Empty file added neo_dolfin/db/main.db
Empty file.
Binary file added neo_dolfin/instance/audit_database.db
Binary file not shown.
Binary file added neo_dolfin/instance/user_database.db
Binary file not shown.

0 comments on commit 9761491

Please sign in to comment.