feat 支持Emby/Jellyfin登录认证
This commit is contained in:
@ -5,11 +5,11 @@ from app.chain import ChainBase
|
||||
|
||||
class UserChain(ChainBase):
|
||||
|
||||
def user_authenticate(self, name, password) -> Optional[bool]:
|
||||
def user_authenticate(self, name, password) -> Optional[str]:
|
||||
"""
|
||||
辅助完成用户认证
|
||||
:param name: 用户名
|
||||
:param password: 密码
|
||||
:return: bool
|
||||
:return: token
|
||||
"""
|
||||
return self.run_module("user_authenticate", name=name, password=password)
|
||||
|
Reference in New Issue
Block a user