close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirecting to Failed login when success redirect left blank

Thread began 6/14/2010 3:30 am by vera155296 | Last modified 6/15/2010 6:45 am by Jason Byrnes | 1778 views | 5 replies |

vera155296

Redirecting to Failed login when success redirect left blank

I am trying to set up a login to also record the date and time of login. I have created the login form with an update record behaviour on submit. However, if I leave the "login success redirect" blank it redirects to the failed login page (even though the login was successful) and therefore does not have the chance to apply the update behaviour.

If I leave both the success and failed redirects blank, it appplies the update on a correct login, but if the login fails it gets stuck in a loop.

I am also having the same problems on other pages within the same site even without the update behaviour. Any suggestions or help appreciated

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the login page so I can examine the code.

Sign in to reply to this post

vera155296

Page attached. It all works if there is a value in both the success and fail redirect. If I remove the success redirect to allow the update behaviour to occur, even a successful login takes me to the failed redirect. THis happens with or without the update bahaviour. Thanks for looking at it.

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

Jason ByrnesWebAssist

in the WA_SecurityAssist/Helper_PHP.php file,

change line 43:

php:
if($WA_Auth_Parameter["failRedirect"]!=""){



to:

php:
if($WA_Auth_Parameter["failRedirect"]!="" && !$WA_Auth_Rows){
Sign in to reply to this post

vera155296

presdents huff

That works! Thanks for fast response.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it helped.

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...