👤 Create User Account for Employee

🔐 Create User Accounts for Employees

📋 Employees Without User Accounts

✅ All employees have user accounts!

📝 Manual Creation

To manually create a user account, run this SQL:

-- Create user
INSERT INTO users (username, email, password_hash, full_name, role, status) 
VALUES ('username', 'email@example.com', '$2y$10$IFJ94VEIGLoPQFy3JR4YE.JSxdmS4QppyRLk2ALJMWFYjkoeWvqsq', 'Full Name', 'employee', 'active');

-- Link to employee
UPDATE employees SET user_id = (SELECT id FROM users WHERE email = 'email@example.com') 
WHERE email = 'email@example.com';
    

← Back to Dashboard