fix(register): changes to not give everyone system admin

This commit is contained in:
2025-09-06 09:01:42 -05:00
parent 271cdbdbfa
commit 415d2e4a1d
3 changed files with 7 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ export const registerUser = async (
.values({ username, email, password })
.returning({ user: users.username, email: users.email });
if (usercount.length <= 1) {
if (usercount.length === 0) {
createLog(
"info",
"auth",