close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Custom Send New Password doesnt return to login.php

Thread began 2/23/2012 2:03 pm by Christopher West | Last modified 2/24/2012 10:19 am by Jason Byrnes | 2081 views | 6 replies |

Christopher WestCommunity Expert

Custom Send New Password doesnt return to login.php

Hi there an odd problem, I have created a lost password page, it seems to update the password in the database, but doesnt go to the login page instead it stays on the same page.

I have attached the file.

I have setup a WebAssist Random Password in bindings, then in Server behaviors I have set up Session variable to the Random Password Binding. The created an Update page to then save this password as an encypted password. Finally I used the Secruity Assist 2 Email Password and linked it to the Session Variable.

The attached file is a dynamic plugin thats being called from Login.php (the default dynamic plugin is the regular login form) and so the URL .php?status=forgot calls the attached php file.

FYI The username is the Email address (since I prefer login systems that use email addresses)

sending screenshots in case they help.

BTW when I set up the WebAssist Random Password for some reason it didnt create "wa_randompassword.php" in the default WebAssist folder in my project directory...instead it created a new WebAssist folder outside my project - so i had to manually copy and paste it into the correct directory.

Further more the "Secruity Assist Email Password" automatically creates a UserName field in the email body section (which I had to manually change to my UserEmail field.

Please help :)

Chris

Attached Files
plg_forgot.zip
Sign in to reply to this post

Christopher WestCommunity Expert

Looks like I solved it - I uploaded all the files to my hosting and it works - is there anyway I can configure my localhost testing server on my PC so that the email functionality works?

Sign in to reply to this post

Christopher WestCommunity Expert

One problem that I am havng from the attached file in ym original post is that the Email that I get contains the encrypted version of the password - now I understand why because I had selected the UserPassword field - in the Secruity Assist Email Password Email Settings box I have selected 'Session.NewPassword' from the + icon but now my page goes to an error : Unknown column 'Session.NewPassword' in 'field list'

Any ideas?

Sign in to reply to this post

Christopher WestCommunity Expert

Here is an updated file attached with my session variable problem (i had followed some other threads but those fixes didnt fix my problem with the following error:

"Unknown column 'Session.NewPassword' in 'field list'"

Not sure what to do :(

Chris

Attached Files
plg_forgot.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 72:
"selectColumns" => array("UserEmail","Session.NewPassword"),


to:
"selectColumns" => array("UserEmail"),

Sign in to reply to this post

Christopher WestCommunity Expert

Hi. I'm not sat at my computer at the mo, but read your solution, I'm curious, from your correction how does the session variable for the unencrypted password get saved to the email body? It's been referenced twice I believe so I'm assuming it's now only needed to be referenced only once. Is this correct thinking on my part?

Sign in to reply to this post

Jason ByrnesWebAssist

this line tells it that there is a session:
"sessionVariables" => array("NewPassword"),


then in the mail body code:
"mailBody" => "User name: [UserEmail]\nPassword: [Session.NewPassword]",

it tells it to use that session.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...