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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user