I would like to set a period to automatically deactivate users. Example: after 7 days disable user x Or a way to register user with default disabled true
I'm currently registering this way using pyrebase and 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']