geethareddy commited on
Commit
2c788bc
·
verified ·
1 Parent(s): 7c1c59d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -8,14 +8,14 @@ app = Flask(__name__)
8
  # Securely store the secret key
9
  app.secret_key = os.environ.get('FLASK_SECRET_KEY', 'your_secret_key')
10
 
11
- # Fetch Salesforce credentials from environment variables
12
- SF_USERNAME = os.environ.get([email protected])
13
- SF_PASSWORD = os.environ.get(Sati@1020)
14
- SF_SECURITY_TOKEN = os.environ.get(sSSjyhInIsUohKpG8sHzty2q)
15
 
16
- # Debugging: Print whether credentials exist
17
  if not SF_USERNAME or not SF_PASSWORD or not SF_SECURITY_TOKEN:
18
- print("❌ ERROR: Missing Salesforce credentials. Set SF_USERNAME, SF_PASSWORD, and SF_SECURITY_TOKEN as environment variables.")
19
  exit(1)
20
 
21
  # Establish Salesforce connection
 
8
  # Securely store the secret key
9
  app.secret_key = os.environ.get('FLASK_SECRET_KEY', 'your_secret_key')
10
 
11
+ # Fetch Salesforce credentials correctly (WRAPPED IN QUOTES)
12
+ SF_USERNAME = os.environ.get("[email protected]")
13
+ SF_PASSWORD = os.environ.get("Sati@1020")
14
+ SF_SECURITY_TOKEN = os.environ.get("sSSjyhInIsUohKpG8sHzty2q")
15
 
16
+ # Debugging: Check if credentials exist
17
  if not SF_USERNAME or not SF_PASSWORD or not SF_SECURITY_TOKEN:
18
+ print("❌ ERROR: Missing Salesforce credentials. Please set SF_USERNAME, SF_PASSWORD, and SF_SECURITY_TOKEN.")
19
  exit(1)
20
 
21
  # Establish Salesforce connection