This topic is locked

Lost password page.

4/1/2009 2:34:35 AM
ASPRunnerPro General questions
W
Wanda author

I have a field in my db called "security_question".
On the Password Reminder page, I'd like to have this on the page and make it required to use on submit.
I have the code in the correct event to retrieve this from the db, so that is fine.
I can't seem to see where I can add a db field onto this page and make it required.
How can one accomplish this?
Thank you Wanda.

J
Jane 4/1/2009

Hi,
here are some tips:

  1. add custom event (Insert ASP code snippet option on the Visual Editor tab) on the remind password page.

    Here is a sample code:
    Response.Write "Answer: <input value="""" name=answer>"


2. then check and process entered answer in the BeforeRemindPassword event:

if REQUEST("answer")="" then

Response.Write "please enter answer"

BeforeRemindPassword = False

else

'check entered answer here

BeforeRemindPassword = True

end if

W
Wanda author 4/1/2009

Thank you Jane. I do appreciate the help. I should also have explained a little more detail.
I can already do what you suggested, what I "should have asked" was how to place this on the form.
If I create a code snippet on the form (which seems to work), the error is not displayed cutesie on the form (as other errrors are) and of ourse there is no table alignment.
I've messed around with the HTML to try to wrap it into existing code, but I just make a mess of it.

I hope that helps.
btw: we are using the method you discribed above and it works, but I am just a neatness and tidy freak.
Thanks again.
Wanda