【发布时间】:2021-12-12 05:21:30
【问题描述】:
我想设置一个自动停用用户的时间段。示例:7 天后禁用用户 x 或者使用默认禁用 true 注册用户的方法
我目前正在使用 pyrebase 和 pyqt5 以这种方式注册
def register(self, screen):
email = screen.email.text()
password = screen.password.text()
confirmpass = screen.confirmpass.text()
if password == confirmpass:
try:
self.auth.create_user_with_email_and_password(email, password)
self.msg_error_registro(screen, msg="Registration successful", bgcolor="background-color:rgb(85, 255, 127);")
screen.email.setText("")
screen.password.setText("")
screen.confirmpass.setText("")
except requests.exceptions.HTTPError as httpErr:
self.error_message = json.loads(httpErr.args[1])['error']['message']
【问题讨论】:
标签: python firebase-authentication firebase-admin pyrebase