Confusing [protect] (long)

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24290
interpreted = N
texte = I have setup up the following scenario:A shopper logs in to a [protect]ted user area (UserArea.tpl) where he/she can check the status of his/her current order. I've already recorded all of their data from the previous visit in a db. In the user area, they can click a link which takes them to a form on ChangeMyProfile.tpl which is filled in with all their data, including their password. ChangeMyProfile.tpl is NOT [protect]ed.Passwords are written to Users.db like so:[encrypt seed=7monkeys][url][uppercase][password][/uppercase][/url][/encrypt]I've also modified MultiGroupChecker and InGroup to accomodate the seed [encrypt]/[decrypt] login scenario thusly:[search db=Users.db&groupsword=ww&wogroupsdatarq=[uppercase][groups][/uppercase]&equserdatarq=[uppercase][username][/uppercase]&eq[unurl][decrypt seed=7monkeys]pass[/decrypt][/unurl]datarq=[url][uppercase][password][/uppercase][/url]] [showif [numFound]=0] [authenticate Good User] [/showif] [/search] If the user decides to change the password, they enter it into the text box and click submit, which takes them back to the user area page where the following code sits:[showif [changed]=T] [replace Users.db&equserdata=[url][uppercase][username][/uppercase][/url]]pass=[encrypt seed=7monkeys][url][uppercase][pass][/uppercase][/url][/encrypt][/replace] [/showif]OK, so far so good. I can pass over from Userarea.tpl to ChangeMyProfile.tpl,change the password, and be taken back to UserArea.tpl. If I click on the Change Profile link again, I'm taken back to ChangeMyProfile.tpl and the password has indeed changed. However, this time when I click the submit changes link, it triggers the [protect] dialog box.That's problem #1. Why should the [protect] dialog be triggered during the same browser session?Problem #2 arises when I keep cycling back and forth between the two pages. Sometimes the password change won't take, or will have clipped letters, or will come out as encrypted text, or will be a blank field. And if I've made a password change and then the [protect] dialog is triggered, it wants the previous password, not what I've just changed it to.I'm completely baffled. I've tried this with different browsers on 3 different platforms and the result is the same. The version is WebCat/OSX 3.0512/iTools 5.006. Before I ask on the WebCat beta list, I want to be sure I'm not making an incorrect assumption about the way all of this should be interacting.Thanks,Will------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Confusing [protect] (long) (Will Starck 1999)
  2. Confusing [protect] (long) (Will Starck 1999)
I have setup up the following scenario:A shopper logs in to a [protect]ted user area (UserArea.tpl) where he/she can check the status of his/her current order. I've already recorded all of their data from the previous visit in a db. In the user area, they can click a link which takes them to a form on ChangeMyProfile.tpl which is filled in with all their data, including their password. ChangeMyProfile.tpl is NOT [protect]ed.Passwords are written to Users.db like so:[encrypt seed=7monkeys][url][uppercase][password][/uppercase][/url][/encrypt]I've also modified MultiGroupChecker and InGroup to accomodate the seed [encrypt]/[decrypt] login scenario thusly:[search db=Users.db&groupsword=ww&wogroupsdatarq=[uppercase][groups][/uppercase]&equserdatarq=[uppercase][username][/uppercase]&eq[unurl][decrypt seed=7monkeys]pass[/decrypt][/unurl]datarq=[url][uppercase][password][/uppercase][/url]] [showif [numFound]=0] [authenticate Good User] [/showif] [/search] If the user decides to change the password, they enter it into the text box and click submit, which takes them back to the user area page where the following code sits:[showif [changed]=T] [replace Users.db&equserdata=[url][uppercase][username][/uppercase][/url]]pass=[encrypt seed=7monkeys][url][uppercase][pass][/uppercase][/url][/encrypt][/replace] [/showif]OK, so far so good. I can pass over from Userarea.tpl to ChangeMyProfile.tpl,change the password, and be taken back to UserArea.tpl. If I click on the Change Profile link again, I'm taken back to ChangeMyProfile.tpl and the password has indeed changed. However, this time when I click the submit changes link, it triggers the [protect] dialog box.That's problem #1. Why should the [protect] dialog be triggered during the same browser session?Problem #2 arises when I keep cycling back and forth between the two pages. Sometimes the password change won't take, or will have clipped letters, or will come out as encrypted text, or will be a blank field. And if I've made a password change and then the [protect] dialog is triggered, it wants the previous password, not what I've just changed it to.I'm completely baffled. I've tried this with different browsers on 3 different platforms and the result is the same. The version is WebCat/OSX 3.0512/iTools 5.006. Before I ask on the WebCat beta list, I want to be sure I'm not making an incorrect assumption about the way all of this should be interacting.Thanks,Will------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Will Starck

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

shipcost (1997) Search inside Include (1998) Secure Server basic question... (1997) [WebDNA] problems sorting when using multiple words in the search field (2011) [WebDNA] External email server/service? (2016) WCS Newbie question (1997) Need help with emailer- 2 issues (1997) Next X hits (1996) Answer: WebDelivery downloads alias, not original ? (1997) How bad an idea is it to put cart=[cart] on all links? (2000) Uniqueness of [cart] (was Number of cars in cart...) (2004) [SearchString] usage (1997) WebCatalog2 Feature Feedback (1996) World Address Info (2003) ASP and WebCatalog ?? (2000) 2.0Beta Command Ref (can't find this instruction) (1997) Make sure I understand this??? (1997) Strange Search Results (2004) Summing fields (1997) Preventing Safari caching (2003)