Springboardmen commited on
Commit
4094014
·
verified ·
1 Parent(s): acc8c5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -28,9 +28,10 @@ if not st.session_state.authenticated:
28
  otp = generate_otp()
29
  st.session_state.otp = otp
30
  st.session_state.email = email
31
-
32
- # In real system, send via email/SMS
33
- st.success(f"OTP Sent! (Demo OTP: {otp})")
 
34
  else:
35
  st.error("Please enter email")
36
 
 
28
  otp = generate_otp()
29
  st.session_state.otp = otp
30
  st.session_state.email = email
31
+
32
+ send_otp_email(email, otp)
33
+
34
+ st.success("OTP sent to your email 📧")
35
  else:
36
  st.error("Please enter email")
37