Improve user registration and data handling for new features

Improves password hashing and adds schema relations for appointments, connections, reviews, and availability.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 556aa286-edd2-4cea-8583-f4fc3cfd119b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/81470e0d-8ae8-4335-9301-cd9a69e670fa/8e77b04a-d19f-45af-9f57-84d64672fc92.jpg
This commit is contained in:
ghaddaditw
2025-05-30 17:23:53 +00:00
parent 1f6e5f5374
commit 1d2adb38eb
2 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export const authController = {
// Hash password
const saltRounds = 12;
const hashedPassword = await bcrypt.hash(validatedData.password, saltRounds);
const hashedPassword = await bcrypt.hash(validatedData.password as string, saltRounds);
// Determine role - special handling for admin user
let userRole = "standard";