Ok, here's the problem. When you add fields using the if command (like
authkey and register) they get appended to the end of the list in
terms of processing. So in your form, they try to login before they
are registered. If you change the form to this it will work:
! >>Register<<
[if ! login || admin]>>To create a new account, please choose a member
name and password<<
[form]
[t]
[r]
[c]>>Passcode:<<
[c][text code]
[r]
[c]>>Member:<<
[c][text member]
[r]
[c]>>Password:<<
[c][password password] [submit REGISTER]
[t]
[session if "equal {=code} mycode ? authkey=register ,
register=password,member[if* ! login] , login=''[if*] : warn=Incorrect
passcode."]
[form]
[if* admin]You are currently logged in as an Admin: {member}
[if*][else]You are already logged in as {member}.
[if]
This is a cool little snippet. We should add it to the BoltWire site
somewhere...
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---