ForgottenPassword process - Handles Forgotten Password Checked.
Rule 1:
ENTER NEW ForgottenPassword (is a Non Persisted BO called ForgottenPassword with Attributes....LoginName (50) and NewPassword (20) )
The Form only shows the LoginName
Rule 2:
IF NOT(EXISTS SystemUser WHERE (SystemUser.LoginName=ForgottenPassword.LogonName))
THEN REPORT ERROR 'There is no User with that Login Name.'
ELSE
FIND SystemUser WHERE SystemUser.LoginName=ForgottenPassword.LogonName
ForgottenPassword.NewPassword=GENERATE_PWD(8,10,1,1,1)
SystemUser.Password=ForgottenPassword.NewPassword
SEND ForgottenPasswordEmail TO SystemUser (Note.... You need to create a Notification Email here called ForgottenPasswordEmail )
DISPLAY MESSAGE 'Your new password has been sent to your email address'
Rule 3:
EXEC_SCRIPT `AwareApp.logout('`+ SystemSettings.BaseURL +`');` Where BaseURL is the Landing Page URL of your app.