Skip to content

fix(detection): fix missing credentials file, rerun calls, and SMTP error handling in Signature Verification Portal (#1734) - #1735

Merged
sanjay-kv merged 1 commit into
recodehive:mainfrom
bobby404-K:fix-signature-verification-portal
Nov 14, 2026
Merged

sanjay-kv merged 1 commit into
recodehive:mainfrom
bobby404-K:fix-signature-verification-portal

Conversation

@bobby404-K

Copy link
Copy Markdown
Member

Summary of Changes

Closes #1734

  • Fix Missing user_credentials.csv (FileNotFoundError): Added safe initialization of user_credentials.csv using script-relative path resolution (os.path.join(os.path.dirname(__file__), ...)). If the file does not exist, an empty DataFrame with the schema username,password is created automatically.
  • Modernize Streamlit Rerun Calls: Replaced deprecated st.experimental_rerun() with a compatible safe_rerun() helper in both app.py and Dashboard.py that utilizes st.rerun() while preserving fallback support.
  • Resilient Email and SMTP Configuration: Removed hardcoded credentials and added environment variable support (SMTP_SERVER, SMTP_PORT, SMTP_SENDER_EMAIL, SMTP_SENDER_PASSWORD). Wrapped SMTP operations in try-except blocks so network or authentication failures provide the generated temporary password gracefully rather than crashing the Streamlit session.
  • Resilient Heavy Dependency Imports: Made optional and non-critical imports in Dashboard.py (tensorflow, fastdtw, cv2, skimage) safe and guarded with fallback distance calculation to avoid import errors in environments where specific heavy libraries are absent.
  • Clean Requirements: Removed redundant db-sqlite3 from requirements.txt and specified modern compatible dependency versions.

Validation

  • Syntax validated with Python AST parser.
  • User management operations (user insertion, duplicate check, credential validation) verified via automated test script.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@bobby404-K

Copy link
Copy Markdown
Member Author

@sanjay-kv Would you like to close this PR or merge? don't let it be open!

@sanjay-kv
sanjay-kv merged commit feaa235 into recodehive:main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(detection): Fix FileNotFoundError on user_credentials.csv, deprecated rerun methods, and SMTP fallback in Signature Verification Portal

2 participants