add emby/jellyfin userlogin

This commit is contained in:
jxxghp
2023-06-20 08:50:48 +08:00
parent 35f5f46873
commit 12c9f146b7
5 changed files with 87 additions and 1 deletions

15
app/chain/user.py Normal file
View File

@ -0,0 +1,15 @@
from typing import Optional
from app.chain import ChainBase
class UserChain(ChainBase):
def user_authenticate(self, name, password) -> Optional[bool]:
"""
辅助完成用户认证
:param name: 用户名
:param password: 密码
:return: bool
"""
return self.run_module("user_authenticate", name=name, password=password)