Commit graph

442 commits

Author SHA1 Message Date
Bradley Shellnut
68182da4ce Fixing iam service tests and formatting other code. 2024-09-13 12:11:41 -07:00
Bradley Shellnut
bdbfe7dcf5 Updating password change toggle to use derived and fixing server code to correctly check errors on verify password. 2024-09-10 17:40:26 -07:00
Bradley Shellnut
3b33880166 Creating APIs for changing user password and calling it in change password. Cleaned up CSS layout styles and got settings nav correct. 2024-09-09 19:25:16 -07:00
Bradley Shellnut
2eee00a20d Moving around settings and security, fixing left nav to static list, fixing recovery codes generation. 2024-09-06 17:35:30 -07:00
Bradley Shellnut
e723c7b66a Refactor hono again. 2024-09-04 16:04:41 -07:00
Bradley Shellnut
679f88d50d Fixing totp mfa enable, disable, and recovery codes. 2024-09-03 17:22:27 -07:00
Bradley Shellnut
3aa537f389 Refactoring to match simplifying done on the origin TaroStack. 2024-09-01 12:22:00 -07:00
Bradley Shellnut
16f00607b1 Updating mfa totp. 2024-08-30 17:36:22 -07:00
Bradley Shellnut
df582f1534 Adding mfa page instead of 2FA, starting controller based password verification and totp generation. 2024-08-29 16:12:40 -07:00
Bradley Shellnut
ead20829e4 Fixing collection by CUID2 and fixing the controllers for these. 2024-08-25 17:53:32 -07:00
Bradley Shellnut
ab4c019406 Fixing loading the wishlist and collection on the main landing page and getting your wishlist by id. 2024-08-22 19:26:22 -07:00
940b485273 Starting update profile with checks on services. 2024-08-18 23:00:59 -07:00
Bradley Shellnut
3ac7de641f Update shadcn, add biomejs, and implementing profile pages. 2024-08-18 20:28:15 -07:00
Bradley Shellnut
abe8ca90ee Fixing infinite user get loop. 2024-08-15 16:46:58 -07:00
Bradley Shellnut
60d0706d58 Deleting all the old DB folder data and slowly migrating each page. 2024-08-15 16:25:41 -07:00
Bradley Shellnut
eeca4e4103 Fixing login cookie max-age. 2024-08-14 18:07:50 -07:00
Bradley Shellnut
8894fbf98b Update migrations and fix seeding. 2024-08-13 17:07:21 -07:00
Bradley Shellnut
7c2105d437 Adding more tests for services. 2024-08-13 16:42:10 -07:00
Bradley Shellnut
14fe604bf4 Fix tests, write random name generator, install faker, and update dependencies. 2024-08-13 15:19:57 -07:00
426ced1373 Fixing importing db provider on repositories. 2024-08-10 10:10:57 -07:00
80b956b35c Signup flow servers and repositories for user create. 2024-08-10 10:03:30 -07:00
Bradley Shellnut
2652d4fef6 Adding controllers slowly. 2024-08-08 12:38:17 -07:00
Bradley Shellnut
049ab4ef0b Fixing migrate and seed. 2024-08-07 20:59:30 -07:00
Bradley Shellnut
488b638d16 Refactor files to export all and no default export. 2024-08-07 10:01:38 -07:00
Bradley Shellnut
9f1ebffee5 Try using adapter vercel. 2024-08-05 09:53:04 -07:00
Bradley Shellnut
9b24a5c095 Removing get client address for now and using adapter node because vercel breaks. 2024-08-02 17:48:45 -07:00
Bradley Shellnut
4dbc93f819 Fixing build but node version 22 is needed and pre-render fails. 2024-08-01 16:46:29 -07:00
dbdac430ef Adding verify login with TOTP credentials coming from the credentials table. 2024-08-01 09:26:42 -07:00
Bradley Shellnut
bf55b04de6 Converting everything to the tsyringe IoC pattern. 2024-07-30 18:50:46 -07:00
Bradley Shellnut
3190e9601e Creating controllers, updating deps, and adding more repositories. 2024-07-28 18:39:42 -07:00
Bradley Shellnut
16191509b4 Copying over tables, migrations, seeds, etc. Creating DTOs for future use. 2024-07-24 17:39:03 -07:00
Bradley Shellnut
d70b3061b5 Moving a lot around for hono 2024-07-21 12:05:48 -07:00
Bradley Shellnut
388f9a399d Adding arctic for future OAuth. 2024-07-19 11:38:20 -07:00
Bradley Shellnut
aedeb7830b Fixing forms for TOTP and Recovery Code while also extracting common code. 2024-07-18 19:51:34 -07:00
Bradley Shellnut
3930c6eb12 Placeholder 0 in pin input and fixing valid return on email submit. 2024-07-18 17:21:26 -07:00
Bradley Shellnut
70b4407637 Remove auth page transition and add crossfade to the auth cards, change error messages, and fix auth buttons when showing reset page. 2024-07-18 16:52:11 -07:00
Bradley Shellnut
ac8721d264 Adding docker-compose for future use, using Card on all auth pages, adding start of reset password. 2024-07-16 14:54:32 -07:00
Bradley Shellnut
a6c242752a
Update +server.ts 2024-07-15 20:11:45 +00:00
Bradley Shellnut
d580c49dcd
Update +server.ts 2024-07-15 19:55:31 +00:00
Bradley Shellnut
513cab891f
Update +page.server.ts 2024-07-15 19:04:58 +00:00
Bradley Shellnut
427c10a7af
Update +page.svelte 2024-07-15 18:55:37 +00:00
Bradley Shellnut
8b828d40da Fixing 2fa 2024-07-15 10:03:50 -07:00
Bradley Shellnut
091bcd2e88 Refactor to use recovery code on TOTP as separate form. 2024-07-14 20:59:51 -07:00
16ba22c76d Refactor check TOTP. 2024-07-14 19:43:20 -07:00
7883ac9184 Updating dependencies. 2024-07-13 20:42:16 -07:00
Bradley Shellnut
2098a5cdfd Checking TOTP expiry time. 2024-07-12 17:44:45 -07:00
Bradley Shellnut
a90a9d4fd6 Fixing user roles building issue. 2024-07-12 15:37:05 -07:00
Bradley Shellnut
42292c15b2 Using Svelte 5, refactor to use a separate table for user two factor details, and update the whole application to use the new table. 2024-07-11 15:53:56 -07:00
d83eaadc0b Adding table for two factor codes and utils for tables. 2024-07-08 09:09:41 -07:00
5c3349ca42 Adding dialog from shadcn svelte, fixing recovery codes rendering, fixing more Svelte 5 migrations, and adding pin input onto totp. 2024-07-07 17:41:08 -07:00
63ac7dfd76 Updating dependencies, upgrade latest svelte 5, and updating to use svelte 5 in most places. 2024-07-06 23:12:36 -07:00
Bradley Shellnut
8c47357605 Fixing a lot of check issues. 2024-06-17 17:37:47 -07:00
Bradley Shellnut
95117cee21 Checking fully authenticated vs not fully authd vs not authd at all and performing select actions to login, clear cookie, etc. 2024-06-17 13:06:45 -07:00
Bradley Shellnut
ad20f88b84 Fixing seeding and migrations. Fixing other login flows and the check for being fully authenticated. Still need to refactor landing page to mitigate bypassing 2FA. 2024-06-14 19:11:18 -07:00
Bradley Shellnut
43877868a4 Fixing env.ts to look for env variables, fix seeding data, adding dependencies needed for this. 2024-06-13 17:32:09 -07:00
Bradley Shellnut
e4ff068fe1 Starting over migrations, revert schema date string type, using two variables in session for knowing if 2FA is valid, adding checks everywhere on protected routes and APIs. 2024-06-11 19:12:12 -07:00
Bradley Shellnut
36aa0636a3 Adding not null to games columns, fixing TOTP form, and fixing TOTP verifying. 2024-06-08 17:25:01 -07:00
Bradley Shellnut
2609c28619 Adding totp enabled to session, restarting migrations, updating many Shadcn svelte components, and refactoring to move 2FA to its own page. 2024-06-08 15:09:21 -07:00
Bradley Shellnut
a8eed0d86d Moving drizzle into it's own DB folder and moving all the table types to separate files. 2024-05-07 17:19:13 -07:00
0b58b3ff8f Changing search to currently just search by like. Adding functions to get order by and direction based on search inputs. 2024-04-27 19:52:57 -07:00
Bradley Shellnut
a7474cbbbd Update dependencies, change generate token based on new lucia method, and replace fails. 2024-04-25 11:26:05 -07:00
Bradley Shellnut
085cb2ef27 Update dependencies, fix dropdown links to collections and wishlists, and fix error 404 page. 2024-04-23 14:35:51 -07:00
Bradley Shellnut
ad5062b91c Fixing code and naming. 2024-04-17 13:57:25 -07:00
Bradley Shellnut
842e9c72bf Fixing wishlist, collection, and individual of those pages. 2024-04-17 12:02:51 -07:00
Bradley Shellnut
abe4f129c4 Fixing schema import for new pages. 2024-04-17 10:56:33 -07:00
Bradley Shellnut
53fdc51ee7 Creating specific id collection and wishlist pages as well as name to both. 2024-04-16 18:38:43 -07:00
Bradley Shellnut
53f3b99133 Usage of TOTP Code or Recovery code on login. If recovery code then mark that code as used. Setup disabling of 2FA if a current password is entered. 2024-04-11 17:17:45 -07:00
389fddc32e Manually adding totp error and converting to use shadcn form on login. 2024-04-08 17:47:54 -07:00
8b48466c7e Adding show 2FA on login if it is enabled on the user. 2024-04-07 22:11:52 -07:00
826d06113d Separate page for two factory recovery codes. 2024-04-06 23:59:59 -07:00
Bradley Shellnut
4880b87922 Writing code to send recovery to it's own page. 2024-04-05 16:10:12 -07:00
564c58a2c6 Creating recovery codes and starting to return to UI, adding seed data for initial admin user, and update dependencies. 2024-04-04 15:08:18 -07:00
Bradley Shellnut
8c5cda1ebc Adding two factor code generation. 2024-03-29 17:40:02 -07:00
f729becade Starting 2FA flow. 2024-03-24 23:11:25 -07:00
Bradley Shellnut
716e2e7d28 Trying to fix auth cookie. 2024-03-21 17:20:50 -07:00
Bradley Shellnut
e6ea744f0a Fixing auth cookie value to be vercel url or backup. 2024-03-21 15:40:21 -07:00
Bradley Shellnut
c01418805b Updating dependencies and fixing mobile issues. 2024-03-21 12:27:32 -07:00
Bradley Shellnut
20c59d7ee5 Adding primary boolean to user roles and setting the value to true for 'user' role creation on signup etc. 2024-03-19 20:37:01 -07:00
Bradley Shellnut
82de351c03 Adding flash message on role add and remove. Protecting routes with flash messages. 2024-03-19 20:09:25 -07:00
Bradley Shellnut
66eb09b237 Blocking admin pages if you don't already have an admin role. Adding add and remove roles to admin page. 2024-03-19 12:01:15 -07:00
Bradley Shellnut
5e174c875f Updating schema, adding admin pages, adding page for adding roles to admin on viewing user, block only admin to reach admin page. 2024-03-15 12:05:47 -07:00
Bradley Shellnut
c1aaad7f6c Fixing use of nanoid. 2024-03-12 12:28:54 -07:00
Bradley Shellnut
ed36285c2f Removing nanoid, changing main id to uuid for all schemas, adding display cuid2, and adding rate limiter to login and signup. 2024-03-12 11:34:39 -07:00
527906b451 Fixing linting issues. 2024-03-10 23:19:55 -07:00
e7d1df356e Removing hopefully that last of prisma, convert the files to use drizzle, and fix shadcn-svelte pagination with newer lucide icon. 2024-03-10 12:09:37 -07:00
a267cb5193 Removing the rest of prisma from files. 2024-03-10 00:02:17 -08:00
bd7d944ad1 Cleaning up and removing prisma. 2024-03-08 11:03:34 -08:00
Bradley Shellnut
d86b975b4e Removing prisma. 2024-03-06 20:37:05 -08:00
Bradley Shellnut
8069db626f Fixing search form. 2024-03-03 11:32:36 -08:00
Bradley Shellnut
9324de4e74 Adding favicon, restrict signup for now, fix seed and migration, and do not set email to empty string on signup. 2024-03-02 15:53:02 -08:00
Bradley Shellnut
24004c4533 Adding relations for reset tokens. 2024-03-01 18:01:45 -08:00
Bradley Shellnut
f3cb74ac7a Adding password reset tokens and API routes for creating and verifying token. 2024-03-01 18:00:27 -08:00
Bradley Shellnut
8185bb76f6 Fixing update password and sign out redirect. 2024-03-01 17:17:13 -08:00
Bradley Shellnut
bc95947fd1 Adding flash message to login redirects. 2024-02-29 17:11:07 -08:00
Bradley Shellnut
3596a5dcd6 Fix profile update and toast works now. 2024-02-27 22:49:21 -08:00
d9c1f55071 Update email action flow. 2024-02-27 09:27:26 -08:00
f5c486e837 Creating two schemas and forms for profile update. 2024-02-26 08:41:24 -08:00
8f9db3fea5 Moving validations to separate folder, upgrading superforms v2, and shadcn components. 2024-02-25 22:59:29 -08:00
Bradley Shellnut
becf1d8349 Fix text search. 2024-02-22 19:13:04 -08:00
Bradley Shellnut
39ecce591a Adding more game util methods and add game pages. 2024-02-20 23:31:05 -08:00