private=[private]
resurrection=[resurrection]
All went well with the above test code . . . . . .I just can't get my procedures to work with authenticate . . . .All stops at Bad Password-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list private=[private] resurrection=[resurrection] All went well with the above test code . . . . . .I just can't get my procedures to work with authenticate . . . .All stops at Bad Password-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list DOWNLOAD WEBDNA NOW! 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...
I'm stymied.Why won't these procedures authenticate a password encrypted and written to a database?Following a procedure outlined by Ken I came across in the archives . . .I copied the users.db database and renamed it members.dbI copied MultiGroupChecker and renamed it MemberCheckerPlaced both of the new files in the same folder as pages I want to protectI use this to write a username/password combo into a database.[append db=members.db]user=[uppercase][user][/uppercase]&pass=[url][url][encrypt seed=1234][uppercase][pass][/uppercase][/encrypt][/url][/url]&groups=e-info[/append]On top of pages to protect I have:[include file=MemberChecker&groups=e-info]In my MemberChecker I have the following:[!] check for user in members.db[/!][showif NotFound=[lookup db=members.db&lookinField=user&value=[uppercase][username][/uppercase]&returnField=user¬Found=NotFound]][authenticate Bad User][/showif][!] Check password of user in members.db[/!][showif [uppercase][password][/uppercase]![lookup db=members.db&lookinField=user&value=[uppercase][username][/uppercase]&returnField=[decrypt seed=1234][unurl][unurl]pass[/unurl][/unurl][/decrypt]¬Found=NotFound][authenticate Bad Password][/showif]To make sure I was encrypting and decrypting the password properlyI made another page with the following:[text]public=Ginny+me^$1234[/text][text]private=[url][url][encrypt seed=1234][uppercase][public][/uppercase][/encrypt][/url][/url][/text][text]resurrection=[decrypt seed=1234][unurl][unurl][private][/unurl][/unurl][/decrypt][/text]public=[public]
Top Articles:
Talk List
Related Readings:
grouped fields? (1999)
Aaron kant add (or whatever it was) (2000)
User .db Questions (1999)
Type 2 errors with WebCatalog.acgi (1997)
WebDelivery downloads alias, not original ? (1997)
The Mysterious '<' (1998)
unable to launch acgi in WebCat (1997)
A multi-processor savvy WebCatalog? (1997)
db protection on NT (1997)
WebCatalog for Postcards ? (1997)
webcatalog 3.0 upgrade (1998)
Referrer (2000)
Multiple fields on 1 input (1997)
showif and cart (1997)
Limit to variables passed on to next tpl? (1998)
Various Problems (1997)
WCS Newbie question (1997)
Form Problem with ! (2000)
Setting up shop (1997)
Allow-Deny: Solved with [Getchars] (1998)