GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
530 stars 76 forks source link

Signal for send_password_reset_email [FEATURE REQUEST] #302

Closed KpoJIuk06 closed 2 years ago

KpoJIuk06 commented 2 years ago

Hi, First I would like to thank you for the work you have done. During the use of functions and signals, a password recovery signal was required. To understand that if the letter is sent, issue a message about sending the letter, and if the wrong email is entered, then issue an error message.Since the signals shown below, as well as in the documentation, none of them returned a response.

func _ready(): Firebase.Auth.connect("login_succeeded", self, "_on_FirebaseAuth_login_succeeded") Firebase.Auth.connect("login_failed", self, "_on_FirebaseAuth_login_failed")
Firebase.Auth.connect("signup_succeeded", self, "_on_FirebaseAuth_signup_succeeded") pass

func _on_FirebaseAuth_login_failed(error_code, message): print("error code: " + str(error_code)) print("message: " + str(message))

func _onFirebaseAuth(email): print("Sent a Reset password email!") Firebase.Auth.save_auth(email)