feat: TTLock — add Учетная запись + Пароль fields for OAuth
Per Sciener docs: OAuth requires TTHotel account credentials (Учетная запись + Пароль) separate from developer app client_id/client_secret. - Migration 055: add ttlock_username, ttlock_password columns - Backend: store and pass new fields to agent - UI: add input fields matching TTHotel PMS integration page - Agent: getAccessToken() uses ttlockUsername/ttlockPassword when provided Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
5
backend/migrations/055_ttlock_credentials.sql
Normal file
5
backend/migrations/055_ttlock_credentials.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- TTHotel account credentials for OAuth (separate from developer app client_id/secret)
|
||||
-- "Учетная запись" + "Пароль" from TTHotel → Settings → PMS Integration
|
||||
ALTER TABLE hotel_ttlock_config
|
||||
ADD COLUMN IF NOT EXISTS ttlock_username TEXT, -- "Учетная запись", e.g. h_1754382851163
|
||||
ADD COLUMN IF NOT EXISTS ttlock_password TEXT; -- "Пароль" (stored as-is, md5'd before OAuth call)
|
||||
Reference in New Issue
Block a user