Files
Client-Billing-software/app/routes/ldap_user.py
2026-04-15 10:32:46 +05:30

10 lines
395 B
Python

# from flask_login import UserMixin
# # --------------------
# # LDAP User class (not stored in DB)
# # --------------------
# class LDAPUser(UserMixin):
# """Represents an authenticated LDAP user (kept in session)."""
# def __init__(self, dn, username):
# self.dn = dn
# self.username = username
# self.id = username # 🔑 Use username for session id (stable)