I do like to make it a requirement for new members to submit their email as part of the registration process.
I need this for my newsletter.
Thanks for the great module and thanks for the help.

Comments

BManuel’s picture

Version: 6.x-3.x-dev » 6.x-3.0-beta2
Category: feature » support

Please some one should help me out here

gapo’s picture

I need this too.
How to get user's password during registration(signing in) to save save it into databe?

michaek’s picture

Status: Active » Closed (works as designed)

This doesn't seem like an issue for the Twitter module, rather it seems like a question about user Profile fields. http://drupal.org/documentation/modules/profile

BManuel’s picture

I think this twitter integration is too complicated. Maybe I should put a bounty to get it rewritten

michaek’s picture

Status: Closed (works as designed) » Active

I think I didn't understand what you were describing at first - you mean that when you're signing in with Twitter, there's no way to have a user provide info for their profile fields?

BManuel’s picture

Yes. They sign in, module redirects them to a required email field, they don't fill it out they ain't going nowhere pass that point. In fact there should be a help text explaining why the website needs this. If you can't give me your email, goodbye. Lets just say the emails of the new members are more important to me than their membership. I need the emails for marketing and constant communication purposes. I don't want all my eggs on the twitterverse, it's a fool's paradise.

Do we need to rewrite to achieve this? If yes then how much and how soon can it be done.
Thanks
BM

ayesh’s picture

According to Twitter's Oauth implementation, they never give the email address to consumer.
As a solution, you could use Rules module to redirect users to user/X/edit page so they can set change username/password and ADD email address.
Form submit returns an error when submitting user form without an email address.

Use Rules and create and action on event User registers.(and do not use Immediate redirect, and ignore destination param)

BManuel’s picture

Just did that with Rules thanks for your wonderful feedback.
I have another issue here http://drupal.org/node/1081210#comment-4616760
Looking for someone who can put this together in a few hours.
BM

BManuel’s picture

Caveat! when it comes to redirect, if you have any module that depends on the user-email to function you are stocked.
Right now we working on a user_save script to update user accounts with the email we collect.

Another reason why email collection needs to be built into the module (so that it's transfer automatically to user account info)

BM

pfrenssen’s picture

Some ideas:

  • Allow to turn on this feature in the Twitter settings.
  • Allow to select multiple user profile fields as being required, not just the email address.
  • Send the default email validation mail.
  • Put the user in a pre-authenticated state before the email address is validated, similar to the way Logintoboggan does it.
xurizaemon’s picture

Status: Active » Fixed

Yes, this needs to be implemented as part of the signup process. It's not something we can implement in the Twitter module because user registration is outside of the scope of what the module does, but you could look to modules like OpenID Selector which do focus on user rego and handle the "edge cases" of every social networking site having its own set of rules.

Even for sites which provide email address, it's often *optional* to return that data to your site, and you'll need to pick up on cases where people uncheck the email box - either by prompting for email and confirming it (trusting an external site's email confirmation is pretty sketchy anyway) or by sending them back to authenticate and provide the password.

* https://dev.twitter.com/docs/faq#6718
* https://dev.twitter.com/discussions/4019
* https://dev.twitter.com/discussions/6035

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

marcvangend’s picture

Status: Closed (fixed) » Closed (won't fix)

So if I understand correctly, this is not fixed, but it won't be fixed here.

pfrenssen’s picture

I still think this is something that is worth fixing :) The way the module handles user registration atm is confusing to the average user and requires a lot of maintenance.

The module does its user registration in twitter_signin_oauth_callback_submit().

xurizaemon’s picture

@pfrenssen: how do you suggest we should fix it?

pfrenssen’s picture

I think a good solution would be to present a form to the user that contains all required user profile fields after the user has authenticated with Twitter. Only after the user has successfully submitted this form the user object is saved to the database, and the email is sent that allows the user to use the one-time login link and set the password. If the user does not complete it, she is not authenticated and no user account is created.

In a standard Drupal install only the e-mail address is required, so this would just be one single field to fill in. If other required fields are present in the user account, this is usually because of business reasons and it would not be desirable to allow any users to register without filling in these required fields.

Having to fill in an additional form makes the Twitter authentication somewhat less easy to use, but Drupal really needs the email addresses or core functionality begins to break (eg password retrieval, editing of user profiles, sending of notification emails, ...).

myDrupal2014_846824658246’s picture

Issue summary: View changes

Has somebody got an export of his rule for redirect the user to a page when signed in with twitter account?