I have a required field set up on my site, the user's Real Name. Although when using the RPX login tool to authenticate against another provider, I don't get the user's Real Name anywhere on my site. For my site, the Real Name field is a required entry and users should not be able to gain an approved registration without entering something. I think it would be entirely acceptable to use the newly created First name and Last name fields created by the RPX module, but I would need them to be marked as "required".
Is there a way to mark certain fields required or a way to complete the registration at my site by entering required fields later, say first login?
I am also using the Login Tobbogin, putting users into a "email not verified" user role; maybe this method could be used to put users into a pseudo "required option not complete" user role before completing the registration process before granting full "Authenticated User" role???
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | rpx-profile-fields.patch | 1.82 KB | infojunkie |
Comments
Comment #1
nrambeck commentedThis kind of a feature is out of scope for the near future. You could accomplish your goal with a hook_form_alter() function in a custom module, but other than that I'm not sure of any other solutions. Once we implement mapped profile fields, we can revisit this issue.
Comment #2
riversidekid commentedI like the idea that 'anyone' could use my drual site with their existing logs credentials from elsewhere and this would be extremely beneficial for a good many sites, but for mine, which is really a small club where we all know each other the anonymity of a user id without a real name brings more difficulty than it's worth.
This isn't a "bug" it's a thought for future enhancement ;). Maybe I'll do another site someday that can use it!
-Stephen
Comment #3
turadg commented+1 subscribe
Comment #4
infojunkieHere's a simple patch (against 6.x-1.x-dev) to enable profile fields on the RPX registration form. The patch does the following:
* Present a new setting in RPX Configuration called "Force registration form". If turned on, the RPX registration form will always show.
* On the RPX registration form,
hook_user('register')is invoked to allow other modules to add their registration-time fields to the form.* RPX's own
hook_useris modified to show nothing if we're on the RPX registration form (since it ends up being called by the invocation above).* Finally, the extra fields are automatically saved inside
user_save, so no additional work is needed.Thanks for your consideration. I'll be happy to support this patch.
Comment #5
nrambeck commentedGreat patch! I just committed this to the latest dev branch, with just a few minor changes to the setting field description.