I’m using to login snippet for my website and all the other aspects of it are working with the exception of login.register which after going over the documentation multiple times should be. All the form fields are named correctly. I’m at a loss at this point and would appreciate some help if possible.
This is my general form and snippet call
In the example here there is an activation resource id, I see you don’t want the user activated, but not sure if this could be necessary to user creation.
I also notice you have used a different id number for the username, and the code around that is different, don’t you need a ‘value’ reference?
@nuan88 all the activation does is set the user to active it does not stop the user from being made (according to the documentation) and the value reference [[!+reg.username]] is just a place holder that puts the value back if the form should fail to submit (to my knowledge and reference off of formit) as for the id being different i changed it and it didnt help.
@andytough you are correct but the name i have “login-register-btn” is the default value for that option.
edit: i tried both of your suggestions in case i am wrong(which definitely might be the case) but got nada
@nuan88 tried multple different names with the submitVar option to no avail, and after double checking yes Members is class of users and should be one of the defaults, and the required in the input is an html5 validation
login is finicky, strip the call down to the bare bones, make sure it works, and add in pieces one by one, or build in validation so we can get some output…nothing in the error log?
Hi, @nuan88 is correct regarding the need to have an input value like the [[!+reg.username]] one for all of the fields. This is what takes the value the user inputs and places it in the database.
I think you will need to stick to default field names. If you wish to have custom field names like companyAddress you should take a look at @bobray 's excellent ClassExtender
My advice is to start with the working example, make sure it works, and then only change the things that must be changed, and very slowly.
You’ve gotten so far away from the example and I don’t think that will be helpful, and it seems to have no purpose really. Start with the working example.