Add user authentication with password hashing - Integrated Argon2 for password hashing and verification - Added bcrypt and thiserror dependencies - Updated database schema with admin and ban flags - Implemented user account creation and login logic - Enhanced error handling for database operations ```
5 lines
117 B
SQL
5 lines
117 B
SQL
ALTER TABLE users
|
|
ADD COLUMN is_banned BOOLEAN DEFAULT FALSE;
|
|
|
|
ALTER TABLE users
|
|
ADD COLUMN ban_reason VARCHAR(255);
|