I have set TSphinxConfig.RequireConfirmedEmail := true and implemented the TSphinxConfig.OnGenerateEmailConfirmationToken event handler.
This all worked OK until I started adding the use of User Name (in addition to Email Address). Now the event is no longer triggered (confirmed by debugging) and I can't figure out why?
Any suggestions as to why this doesn't work? Could it be related to email and user name combination?
However can you confirm that my assumption is correct that if I create a user with EmailConfirmed = false and TSphinxConfig.RequireConfirmedEmail = true, OnGenerateEmailConfirmationToken should fire?
I am embarrassed to tell you but I was expecting the event to trigger when the user was created (now via a procedure in the Sphinx server, so to say). Obviously, it makes more sense to create & send the confirmation token on first log in.
In that context (adding users from the back office, so to speak) I seem to be missing a couple of properties/features:
TSphinxConfig.UserOptions.RequireUniqueUserName
TSphinxConfig.RequirePasswordChangeOnFirstLogin
Combined with 2. above, a possibility to somehow retrieve the user password so it can be sent with the email confirmation token. I.e. confirm email and then force password change.
Are these planned for the near future or should I raise a feature request / implement something myself?