Closed AnveshMS closed 3 months ago
Hi @AnveshMS, the register_user
does return None, None, None by design when it is initiated. Once the user fills in the form and submits it, the widget will then return the (email, username, name) of the registered user. This is intended behavior and is not a bug in any way.
@mkhorasani even after submit the form I am getting the None,None,None as return parameters, After giving form values. Can you please check the code snippet which I have provided above?
@mkhorasani even after submit the form I am getting the None,None,None as return parameters, After giving form values. Can you please check the code snippet which I have provided above?
I'm sorry, but I am not able to recreate this issue on my side. Can you please try to exactly follow the example provided in the Readme and see if the problem still persists?
@mkhorasani even after submit the form I am getting the None,None,None as return parameters, After giving form values. Can you please check the code snippet which I have provided above?
I meet the same issue.
I have been calling authenticator.register_user(pre_authorization=False,captcha=False), I have given all the initialization of authenticator as below. def initialize_authenticator(): """ Initializes the authenticator by retrieving user credentials from the database.
def register_user(authenticator): print("Registering user Method") try: email_of_registered_user, username_of_registered_user, name_of_registered_user = authenticator.register_user(pre_authorization=False,captcha=False) print(f"Email: {email_of_registered_user}, Username: {username_of_registered_user}, Name: {name_of_registered_user}")
Kindly let me know the what is the error we are getting for? From Console logs Registering user Method Email: None, Username: None, Name: None Registration failed: email_of_registered_user is None