feat: SMTP integration, dynamic app_settings for email, and email verification enforcement for tier upgrades
This commit is contained in:
@@ -5,6 +5,8 @@ CREATE TABLE IF NOT EXISTS users (
|
||||
email VARCHAR(255) UNIQUE NOT NULL,
|
||||
password_hash VARCHAR(255) NOT NULL,
|
||||
role VARCHAR(50) DEFAULT 'free',
|
||||
is_email_verified BOOLEAN DEFAULT false,
|
||||
email_verification_token VARCHAR(255),
|
||||
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
|
||||
@@ -11,5 +11,10 @@ INSERT INTO app_settings (key, value, category) VALUES
|
||||
('icici_api_key', '', 'payments'),
|
||||
('google_safe_browsing_key', '', 'security'),
|
||||
('google_client_id', '', 'auth'),
|
||||
('apple_service_id', '', 'auth')
|
||||
('apple_service_id', '', 'auth'),
|
||||
('smtp_host', 'smtp.office365.com', 'smtp'),
|
||||
('smtp_port', '587', 'smtp'),
|
||||
('smtp_user', 'noreply@cavininfotech.com', 'smtp'),
|
||||
('smtp_pass', 'xmkshjlszjbkcyzb', 'smtp'),
|
||||
('smtp_secure', 'false', 'smtp')
|
||||
ON CONFLICT (key) DO NOTHING;
|
||||
|
||||
Reference in New Issue
Block a user