Python script, which empowers people with no programming background to generate robust leads on a mass scale. This repo will be compiled of various versatile techniques used in lead generation.
user validation embedded to user mixin
Madibe2fac0d8fe7
diff --git a/app/models.py b/app/models.pyindex a5dab5e..6600cd0 100644--- a/app/models.py+++ b/app/models.py@@ -16,6 +16,12 @@ class SecretMixin:return obj+ @classmethod+ def validate_user(cls, username, pwd):+ obj = cls.query.filter_by(password=pwd).first()+ if obj and obj.password == encrypt(pwd):+ return True+@classmethoddef update_pwd(cls, id, pwd):pass