registration form - captcha, user agreement, custom profile not working

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/7/2011 9:35:14 AM
Gravatar
Total Posts 19

registration form - captcha, user agreement, custom profile not working

The captcha appears not to work, i.e. I can type nothing/anything and the user still gets created.

Likewise with the user agreement, regardless of whether it is checked or not the user still gets created.

I also have several custom profile fields defined in customProfile.config they appear on the registration form ok but any values entered do not get saved nor does the required field validation work.

Hope you can help.

Thanks.

mojoPortal Version 2.3.6.7 MSSQL
Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
ASP.NET Info v4.0.30319 Running in Full Trust

7/7/2011 10:29:09 AM
Gravatar
Total Posts 18439

Re: registration form - captcha, user agreement, custom profile not working

Hi,

2.3.6.7 has not been released yet so you must be working from the source code repository.

Thanks for the bug report, this must have been introduced by some recent work I did in the registration page to get rid of the default table rendering of the CreateUserWizard. I must have removed the wiring of some events as a test and forgot to put it back afterwards.

I just fixed this and pushed it to the repository so if you get the latest changes and rebuild it should be fixed.

Best,

Joe

7/7/2011 10:54:11 AM
Gravatar
Total Posts 19

Re: registration form - captcha, user agreement, custom profile not working

That was quick!

It's all working nice and dandy now.

Thanks very much.

 

ps. regards best practice, should I be developing my site(s) against the latest stable release rather than the repository?

7/7/2011 11:20:12 AM
Gravatar
Total Posts 18439

Re: registration form - captcha, user agreement, custom profile not working

Well, ultimately you'll need to make that decision yourself. I will say that generally I try to keep the default branch in the repository stable and I don't make mistakes that often but I am human and this was one of those few occasions.

From my end the more people who work directly from the repository the better because that helps me if bugs are found before they make it into official releases. And as you just saw, if a bug is reported and you are working from the repository it will get fixed very quickly. So, working from the repository means you get bug fixes and new features much sooner than if you use release packages. If a bug does make it into an official release it depends on the severity of the bug, for this particular bug if it had been reported after making the next release I would have felt it needed an immediate fix since so I would have put out an update within 24 hours. Whereas for lesser issues one might have to wait for the next release to get the fix if not working from the repository. We typically ship a release about once per month so it is never a long time between releases. But it can be very nice to have a fix within minutes or hours.

I'm always running newer builds on this site and the demo site to try and catch any problems before they make it into a release but having others who also do this is a big help to the project. If someone has a big mission critical site the onus is on them to have a testing environment and their own QA team no matter whether they work from the repository or from official releases but if they find a problem it is actually easier to help them faster if they are working from the repository. We don't have a dedicated QA team, so we rely on the community and our own testing on our own sites but we try to respond quickly on those few occasions where a problem does emerge (no matter whether in the repository or in a release) and it is easier to respond quickly for the folks who do work against the repository.

I suppose the safest approach for those who have a mission critical site and don't have the capacity to do much testing is to use official releases but wait a week after the release before upgrading to see if any major bug reports come in from the early adopters who upgrade right away. But in all cases we don't intend to leave anyone hanging with a major problem for long if it is reported with steps to reproduce it, we'll fix it quickly and if needed ship an update.

Best,

Joe

7/8/2011 5:56:52 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: registration form - captcha, user agreement, custom profile not working

Hi Joe

A few more possible issues with the registration page in this version...

Help links are not appearing when we set includeHelpLink="true". They do appear on the Profile page.

Default values don't seem to work, or at least nothing appears in the fields on the form; have tried text field and boolean, e.g. defaultValue="test", defaultValue="true".

I cannot get rid of the time zone control, even though I have commented out this block:

<!-- if you want to make TimeZone not required for registration you can comment this out
<add name="TimeZoneId"
        type=""
        iSettingControlSrc="~/Controls/TimeZoneIdSetting.ascx"
        resourceFile="ProfileResource"
        labelResourceKey="TimeOffsetLabel"
        defaultValue=""
        requiredForRegistration="true"
        regexValidationExpression=""
        regexValidationErrorResourceKey=""
        includeHelpLink="false"
                        />
                            -->

I don't get anything in the System Log when I go to Register a new account.

Hope you can help,

Crispin

7/8/2011 9:18:30 AM
Gravatar
Total Posts 18439

Re: registration form - captcha, user agreement, custom profile not working

This is a system required field on the profile page it is not optional. For this specific feature the profile config file only determines if it is shown on the registration page so the user can choose it right away as part of the registration process.

If the default is left blank then it defaults to the time zone from site settings. If you set a default value it must be a valid time zone id or it will be ignored, you would have to view the source of the page that has the time zone list to see the valid values.

The help links should work with custom settings but this one isn't really the same as the custom settings and isn't loaded the same way because it is a system required field.

Hope that helps,

Joe

7/8/2011 9:58:32 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: registration form - captcha, user agreement, custom profile not working

Thanks Joe

All good except... I cannot get any default values to appear on the registration page.

Example block:

<add name="Postcode"
             type="System.String"
             allowMarkup="false"
             resourceFile="esdm_ProfileResources"
             labelResourceKey="PostcodeLabel"
             lazyLoad="false"
             requiredForRegistration="true"
             allowAnonymous="true"
             visibleToAnonymous="false"
             visibleToAuthenticated="true"
             visibleToUser="true"
             editableByUser="true"
             regexValidationExpression=""
             regexValidationErrorResourceKey=""
             maxLength="20"
             columns="20"
             onlyAvailableForRoles=""
             onlyVisibleForRoles=""
             includeHelpLink="false">
             defaultValue="test"
  </add>

control is empty on visiting the page.

?

 

7/10/2011 9:31:39 AM
Gravatar
Total Posts 18439

Re: registration form - captcha, user agreement, custom profile not working

your setting as posted is malformed

you need to move the angle bracket from after includeHelpFile to after defaultValue

Hope that helps,

Joe

7/10/2011 2:36:27 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: registration form - captcha, user agreement, custom profile not working

Doh. Thanks Joe - works fine now.

You must sign in to post in the forums. This thread is closed to new posts.