Güvenlik Doğrulaması,Login Logları
This commit is contained in:
12
supabase/migrations/20251230_add_master_otp.sql
Normal file
12
supabase/migrations/20251230_add_master_otp.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Enable pgcrypto extension for hashing
|
||||
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
|
||||
|
||||
-- Add master_code_hash column to profiles
|
||||
ALTER TABLE public.profiles ADD COLUMN IF NOT EXISTS master_code_hash TEXT;
|
||||
|
||||
-- Set a default master code for Kenan Karaer (or all admins)
|
||||
-- The hash below is for '123456' using bcrypt
|
||||
-- You can generate new hashes using: select crypt('YOUR_CODE', gen_salt('bf'));
|
||||
UPDATE public.profiles
|
||||
SET master_code_hash = crypt('271210220792', gen_salt('bf'))
|
||||
WHERE role = 'admin';
|
||||
Reference in New Issue
Block a user