[FIXED] Forgot password link error with Users service

Python 2.7 Full environment, using the Users service, suddenly getting the following error when users click the link emailed to them when they use the Forgot password functionality:

(current-environment) called outside native RPC handler or admin call

Nothing else loads on the screen, users are unable to change their password.

Hi @splinter,

Thanks for this, it’s definitely a bug on our end. We’re working on a fix right now, and I’ll post here when I have an update for you.

Sorry for the inconvenience!

[Moved to bug reports]

Update: This should now be fixed. Please let us know on this thread if you continue to see any issues.

Error is gone, but now having to click the Sign In button before the Reset password popup appears.

This is by design, to allow custom signup/login/reset flows (like yours). In this case, just call anvil.users.get_user() in the __init__ method of your startup form, and that will trigger the Password Reset popup if applicable.

I will make sure the documentation gets updated to make that clear!

1 Like

Thank you! That works perfectly.