Commit Graph

  • bbbf14bdc7 Fix example config to have AutoMigrate be a proper boolean type in JSON Maximilian 2023-02-13 23:32:16 -0600
  • eb1c2daa6a Add AuthToken to user struct, and update SQL statements to match struct fields Maximilian 2023-02-13 23:30:12 -0600
  • cb786a6a56 Prepare config option to enable auto migrations Maximilian 2023-02-13 23:28:36 -0600
  • b962bbdd88 Fix import order Maximilian 2023-02-13 22:28:11 -0600
  • a2077131a7 Update experimental crypto library Maximilian 2023-02-08 19:55:10 -0600
  • edccb95be3 Remove unnecessary assignment Maximilian 2023-02-08 19:47:08 -0600
  • 9e4216301d Move models to its own package Maximilian 2023-02-08 19:39:53 -0600
  • f2f2187872 Fix issue with logging to a file. Only log by day. v1.0.1 Maximilian 2023-02-05 13:01:38 -0600
  • 112a549162 Update to go 1.20 Maximilian 2023-02-05 12:59:37 -0600
  • 1360f93ac3 Embed static and templates folder when compiling, RenderTemplate now renders and serves from the embedded filesystem Maximilian 2023-02-05 12:46:47 -0600
  • 4f4722350f Add license v1.0.0 Maximilian 2023-01-07 22:08:25 -0600
  • 2961f132fb More uniform errors Maximilian 2022-12-23 20:42:14 -0600
  • 03bab76650 Fix existing auth_token check and comment fixes Maximilian 2022-12-21 21:22:11 -0600
  • 007830ab33 Log error when failing to close the config file Maximilian 2022-12-14 15:23:48 -0600
  • 8c93b3746b Fix csrf token unexported error Maximilian 2022-12-04 19:06:51 -0600
  • e8e42f3724 Code cleanup Maximilian 2022-12-04 18:04:24 -0600
  • ed2d0063f0 Fix line separators (LF only now) Maximilian 2022-12-04 17:55:05 -0600
  • 1eb278c4b9 Use csrf tokens and validation with login and register forms max 2022-11-14 12:29:55 -0600
  • 2f631cf3ee Make token error more clear, rename cookie and form value to csrf_token max 2022-11-14 12:12:06 -0600
  • 18ee7b2fac Make error message more clear max 2022-11-14 12:11:10 -0600
  • 58af44bdd6 Add csrf protection functions max 2022-11-14 12:03:51 -0600
  • 35f7cb7601 Make sure a duplicate session token is never stored max 2022-11-06 10:50:54 -0600
  • 8f87ee1c4e Fix and add comments max 2022-11-04 15:12:57 -0500
  • 2a95868d5f Log err in GetCurrentUser max 2022-11-04 13:59:24 -0500
  • bd4f9047d9 Add function to return the current user based off of the session cookie max 2022-11-04 13:58:03 -0500
  • 6ddafff871 Formatting Maximilian 2022-11-01 23:07:22 -0500
  • 92529640d6 Make session cookie HttpOnly and Secure Maximilian 2022-11-01 17:59:18 -0500
  • 967e918df1 Properly overwrite session cookie when logging out Maximilian 2022-11-01 17:31:19 -0500
  • a6b6c259ce Proper Logout logic Maximilian 2022-11-01 17:29:41 -0500
  • 2f3c12a06c Fix auth_token assignment Maximilian 2022-11-01 17:28:28 -0500
  • d68badc41c Fix password authentication Maximilian 2022-11-01 17:15:19 -0500
  • 619469059c Create logs folder if it doesn't already exist Maximilian 2022-11-01 16:30:54 -0500
  • 601b3d2cb0 Login function now authenticates and redirects Maximilian 2022-11-01 16:14:49 -0500
  • e6b08266ac Update dependencies Maximilian 2022-11-01 15:39:30 -0500
  • 187d10ca4a Routes and show controller functions for login and logout max 2022-11-01 11:23:44 -0500
  • 5a9ee796f8 Rearrange functions max 2022-11-01 11:23:08 -0500
  • 200942b2a2 Set session cookie name Maximilian 2022-10-22 12:23:34 -0500
  • a590c96d0b Error handling for CreateUser query Maximilian 2022-10-22 12:18:14 -0500
  • 93a1cb6049 ValidateSessionCookie() and LogoutUser() max 2022-10-21 21:04:46 -0500
  • 3417622841 Pass response writer to createSessionCookie() max 2022-10-21 20:17:11 -0500
  • df8e8f0426 Formatting Maximilian 2022-10-20 20:08:29 -0500
  • 3aadb40b5c Update go.mod Maximilian 2022-10-20 19:52:49 -0500
  • 63a7032ebb Exclude .idea max 2022-10-20 12:22:25 -0500
  • 8b07683d85 go.sum max 2022-10-20 12:21:32 -0500
  • d875d5e351 Work in progress user model and functionality max 2022-10-20 11:59:57 -0500
  • e73c006550 Routing, templating, and database handling max 2022-10-20 11:59:33 -0500
  • 38352de02f Base app max 2022-10-20 11:58:21 -0500
  • 31fc0856b8 Dependency injection, example .env, and config handling max 2022-10-20 11:57:41 -0500
  • dd5b381426 gitignore max 2022-10-20 11:56:16 -0500