This is my form. It is almost the initial form in the page
action.register but I added a textbox for entering a passcode and then
I would like that the registration occurs only if the passcode is
correct. That's what I want to do with the line :
[session if "equal {=code} mycode ? authkey=register ,
register=password,member"]
And this does not 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][session login]
[if*][form]
[if* admin]You are currently logged in as an Admin: {member}
[if*][else]You are already logged in as {member}.
[if]
On 15 oct, 20:22, The Editor <[email protected]> wrote:
> I'd have to see your whole form to figure out what is wrong, but I got
> this to work on my site just fine:
>
> [messages]
> [form]
> [text code][submit]
> [session if "equal {=code} mypass ? msg_1=yep , msg_2=hi there :
> msg_1=nope , msg_2=good bye"]
> [form]
>
> Cheers,
> Dan
>
> P.S. It's always eager to debug if you can see the whole form. I can
> just cut and paste and give it a whirl...
>
>
>
> On Thu, Oct 15, 2009 at 10:32 AM, ToF <[email protected]> wrote:
>
> > Concerning the other problem:
>
> > In the page action.register, I want to replace these two lines:
>
> > [session authkey register]
> > [session register password,member]
>
> > by this one:
>
> > [session if "equal {=code} toto ? authkey=register ,
> > register=password,member"]
>
> > Surely, I have declared a textbox so that the guy can write a text,
> > corresponding to the "code":
>
> > [c]>>Passcode:<<
> > [c][text code]
> > [r]
>
> > It does not work. It says that the form has been submitted but it
> > seems not to create the login and thus it cannot log the guy, even if
> > the passcode is correct.
>
> > As you may have understood, I want people to *register* only if he
> > knows the passcode...
>
> > Any Idea ?
>
> > On 15 oct, 13:00, The Editor <[email protected]> wrote:
> >> On Thu, Oct 15, 2009 at 6:18 AM, ToF <[email protected]> wrote:
>
> >> > I have another question ...
>
> >> > I want to have a more "secure access to the registration". I try to
> >> > run this:
>
> >> > [session if "equal {=code} toto ? authkey register"]
> >> > [session if "equal {=code} toto ? register password,member"]
>
> >> You need = in the field=value assignements
>
> >> [session if "equal {=code} toto ? authkey=register"]
> >> [session if "equal {=code} toto ? register=password,member"]
>
> >> Or even
>
> >> > [session if "equal {=code} toto ? authkey=register ,
> >> > register=password,member"]
>
> >> Try that... Interesting idea!
>
> >> 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
-~----------~----~----~----~------~----~------~--~---