MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / verify_admin

Method verify_admin

src/core/auth.py:21–24  ·  view source on GitHub ↗

Verify admin credentials

(username: str, password: str)

Source from the content-addressed store, hash-verified

19
20 @staticmethod
21 def verify_admin(username: str, password: str) -> bool:
22 """Verify admin credentials"""
23 # Compare with current config (which may be from database or config file)
24 return username == config.admin_username and password == config.admin_password
25
26 @staticmethod
27 def hash_password(password: str) -> str:

Callers 2

admin_loginFunction · 0.80
change_passwordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected