Reset password argument

what is the argument of anvil.users.send_password_reset_email()?

The argument is the email address of the user.

So if you are sending the reset email to the currently logged in user, you would do something like this :

u = anvil.users.get_user()
anvil.users.send_password_reset_email(u['email'])

Or you could put a literal string in as the parameter.

See here : https://anvil.works/doc/#users_api

2 Likes

Also see: Finding out what is in your event-handler's event_args

1 Like