Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For new users after registration with number. Function user_save remove namber of the user when it login.
Please fix it:
replace
user_save($account, array('sms_user' => $data), 'mobile');
to
sms_user_save($account, array('sms_user' => $data), 'mobile');
Comment | File | Size | Author |
---|---|---|---|
#4 | smsframework.patch | 1.14 KB | WiseMike |
Comments
Comment #1
WiseMike CreditAttribution: WiseMike commentedIn version 6.x-2.x-dev it's too.
Comment #2
univate CreditAttribution: univate commentedNot sure I understand the bug
Could you do one of the following:
1) provide a patch
2) say what line needs changing
3) describe the steps to show how to repeat the problem
Comment #3
oscardax CreditAttribution: oscardax commentedI´m experiencing a similar problem. User mobile number will get deleted from sms_user just after code validation, if number provided does not include the country code. (e.g. a number from Spain 0034650123456 or 34650123456 will be fine, but a number 650123456 will get deleted).
What´s curious is that the validation code is correctly sent to the mobile, but as the number will get deleted, that user will receive no more SMS.
Steps to reproduce the error:
Provide a mobile number in the form 650123456, submit form, introduce de validation code (you can read the code from database table sms_user, column code), submit form -> the number is deleted from the database.
I mean the sms_user row for that user is set correctly to status = 2 (number validation successful), but the number field is set to 0.
Comment #4
WiseMike CreditAttribution: WiseMike commentedattached patch
Comment #5
univate CreditAttribution: univate commentedsince there is a patch, you should set to needs review
Comment #6
dpiComment #7
dpi