Secret Codeword for Signup

alt=
kccomedy
@admin8514
10 years ago
12 posts
I was wondering how to go about making a new filed at signup that asks a user to enter or select the "Secret Codeword" in order to complete registration. I want to give this codeword to a select group of people who can then come singup to prevent people I don't know from registering.

I am stuck in the Form Designer at "field: user_codeword" not sure the type or option I should use. Since it's a word I want to create for people to enter or select, I would assume I define it some how.

Any input would be great.
updated by @admin8514: 04/08/15 10:31:43AM
michael
@michael
10 years ago
7,794 posts
You could set the signup to pending so that admin has to approve all new signups by clicking the approve button. That system already exists.

How are you stuc at user_codeword. You should be able to save that then select how the form shows. Show it as a 'text' field and they can enter text.

There are docs on its use here:

"Using the Form Designer"
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/1275/using-the-form-designer

and a walkthrough here:
"HowTo use the Form Designer......"
https://www.jamroom.net/the-jamroom-network/documentation/howto/2463/howto-form-designer-aparna-custom-page-module-with-rss-feed
alt=
kccomedy
@admin8514
10 years ago
12 posts
Thank you Michael, however neither of those helps in this situation. I want to make a new field that asks for a secret word and if that secret word is correct it allows a person to register. When I say I'm stuck, I mean that I have created a field and now am trying to figure out how to configure that field to either accept input from user that must match a value or have a multiple choices for the user to choose from and if the correct choice is made, then they may continue.

Let's say I tell my closed network of friends the codeword is "pizzapump". Then when they are in the process of registering, they can either enter that or choose that word from a list of four words.
alt=
kccomedy
@admin8514
10 years ago
12 posts
If I have a list of options to choose from and only one be the correct answer.
I have tried
false|flapdice
false|limeseed
false|tophide
false|glueham
true|funjump
false|catlip
false|lowrun
false|alljam
false|lollynow


and also

no|flapdice
no|limeseed
no|tophide
no|glueham
yes|funjump
no|catlip
no|lowrun
no|alljam
no|lollynow

no matter what I try it shows only two options on the signup page. I have tried, radio, optionlist, checkbox, select. All of these fail to list all options I would like to be displayed.
paul
@paul
10 years ago
4,335 posts
I don't think what you are trying there can be made to work, and even if it could, people could keep retrying until they hit lucky!!
What would be needed is a (simple) custom module that 'listens' for the signup form and rejects it it the codeword isn't right. Checkout this documentation on building a module - https://www.jamroom.net/the-jamroom-network/documentation/development/26/creating-a-module

Alternatively, why not just pre-create all your users then tell them their user names and passwords?
ACP=> Users=> User Accounts=> Tools=> Create User


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,794 posts
kccomedy:....I mean that I have created a field and now am trying to figure out how to configure that field to either accept input from user that must match a value....
Right-o. So the Form Designer takes care of the "I have created a field" part, but thats all it does. If you want to do some checking on something, that would require a module.

The thing to do is to use the

"Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/development/1011/events-and-listeners

system to see what values are coming in when the form is submitted. You would see if user_codeword is in the submitted form, and check that it is what you want it to be. If it is, let the process continue, and if it isn't send the user back to the registration screen (or ban him completely.) Seams like it would only slow them down though. they could just keep trying the value settings until they get it right.

Tags