Telegram_2023-11-09T08

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2023 > 11 > 09 >

Telegram_2023-11-09T08

Telegram link

 

2023-11-09T08:41:08

 

I don't understant what you are doing. Just a simple \reset\ button that log out the user and a \wait\ state until the user do the job.... the reset \url\ can be a IW handler or a simple external webservice

 


 

Telegram link

 

2023-11-09T08:52:30

 

Here’s an explanation of the goal : I wanted users in the software to have the ability to reset/set their password in the app via an email link.

 

The email links work by generating a UUID code that is stored in the database against whichever account is wanting a password update.

 

The email sends out a link to the application with a specific endpoint ( type: bot_command /PasswordUpdate ) and adds the UUID code as a query parameter to the url sent out to the users email ( type: bot_command /PasswordUpdate ?code={code} ) in order for me to link back the query parameter to a specific account once the user has clicked the link, I needed to be able to extract the parameter in a TContentBase content handler. Once the database is queried with the code and a matching accountID is found, the UserSession is assigned the accountID and the TContentBase response is the redirect the user to another endpoint within the app ( type: bot_command /ResetPassword ) this endpoint is setup as a TContentForm and in the form’s create event it checks that the UserSession is flagged with a UpdatingPassword Boolean that can only be changed before the TContentBase redirect. If the flag is not true, the user is simply redirected back to the login screen. This prevents a user from typing in their browser the type: bot_command /ResetPassword endpoint and changing their password if they haven’t gone through the email process first.