How to determine if the email was created via rodauth or via the rodauth(:internal) config. #344
Replies: 2 comments 8 replies
-
If you're requiring registered users to set a password on account creation, and invited users on account verification, could you just check whether the user has a password set? need_password = !rodauth.has_password? Any particular reason you have a separate Rodauth configuration with only the internal request settings? You can check for |
Beta Was this translation helpful? Give feedback.
-
The idea of overriding the method:
did not work as expected because However, fortunately, the following approach seemed to work in
and
I'll test everything tomorrow PS: do I understand correctly that I guess I thought that each configuration was a separate closed full cycle entity, but now I realize a little bit that this is not quite true Thank you for your time and help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @janko
I have a registration system where, when creating an account, the user immediately enters a username and password. After email confirmation, the user is automatically authenticated, and no further actions are required. However, the system also allows inviting users, and for these users, after email confirmation, they should be able to enter a password on the verification page.
The issue is that on the current template, I don't display this page, using a loader and JS for automatic confirmation. This behavior shouldn't work for invited users, and I want to understand how to differentiate whether the user was created through rodauth or invited via rodauth(:internal).
Thanks for your help!
Should I duplicate the entire template to handle both cases, or is there a more efficient way to manage this?
Beta Was this translation helpful? Give feedback.
All reactions