Afkanerd Deku verification plugin
Please make sure you have Python 3.7 or newer (python --version).
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install --upgrade pip wheel
$ pip install "git+https://github.com/Afkanerd/Deku-Verify-Plugin.git@main#egg=DekuVerify"
Install upgrades
$ pip install --force-reinstall "git+https://github.com/Afkanerd/Deku-Verify-Plugin.git@main#egg=DekuVerify"
$ git clone https://github.com/Afkanerd/Deku-Verify-Plugin.git
$ cd Deku-Verify-Plugin
$ python3 setup.py install
from DekuVerify import Verification, MySQL
try:
db_config = MySQL(
database="",
user="",
host="",
password="",
)
verify = Verification(database_params=db_config)
result = verify.create(identifier="")
except Exception as error:
# Handle exception here ...
response
{ "code": "", "sid": "", "identifier": "", "expires": "", "status": "" }
from DekuVerify import Verification, MySQL
try:
db_config = MySQL(
database="",
user="",
host="",
password="",
)
verify = Verification(database_params=db_config)
result = verify.check(code="", identifier="")
except Exception as error:
# Handle exception here ...
response
{ "status": "", "sid": "", "identifier": "", "expires": "" }
from DekuVerify import Verification, MySQL
try:
db_config = MySQL(
database="",
user="",
host="",
password="",
)
verify = Verification(database_params=db_config)
result = verify.cancel(sid)
except Exception as error:
# Handle exception here ...
response
bool
-
SessionNotFound: Exception raised when a verification session is not found.
return: String
-
IncorrectCode: Exception raised when a given verification code is incorrect
return: String
-
InvalidIdentifier: Exception raised when a given identifier is incorrect the mapped session
return: String
This project is licensed under the GNU General Public License v3.0.