-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phone number can't be set at user profile #25931
Comments
I received the same message, but the phone number is still saved in my profile |
The error miraculously disappeared after a day. Now I can enter the phone number just fine, no warnings. :-/ |
Someone reported this on the forums: https://help.nextcloud.com/t/unable-to-set-phone-number/111782 He however confirmed, that it does not save the phone number for him. |
The issue lies in this piece of code: https://github.com/nextcloud/server/blob/master/lib/private/Accounts/AccountManager.php#L94-L121 which essentially means:
Especially the latter seems to be a string restriction because it essentially means all users of an instance have to be from the same country, or at {least|worse} their phone numbers have to be. |
This is the original PR: #24486 @nickvergessen is there a way to allow multiple/all phone number regions? |
I think the actual problem you are facing is #26370 https://github.com/nextcloud/server/blob/master/lib/private/Accounts/AccountManager.php#L94-L121 it actually means:
|
Okay, I see, and I could reproduce this now. How about also accepting numbers starting with double-zero in case there is no region set? They also represent valid international-format phone numbers and should be allowed IMHO. Also, when reading the documentation of |
Well there is a warning in the admin section to add the default region, so not going to optimize the unset-case. And as said, this issue would mostlikely not be here when the "failed" error would disappear on success which we solved with 21.0.1 already, so I will close this. |
This obviously has not been resolved still have an issue after just installing in 2023 |
Same (with NC 27.1.2). Please reopen this issue. Edit: Actually it does work when I type in a real valid phone number and not just 1234 etc. But it's still confusing that the fake number showed the checkmark in the field after typing it in but then it did not save it... |
EDIT: The phone number is not visible in the second screenshot, but the phone symbol itself can be clicked - it links to tel:<phone number. So the below text isn't relevant to this issue. Nextcloud version 29.0.5 (Nextcloud Hub 8), hosted by Webo
How can the phone number be made visible in the profile? ➡️ Is this related to the problem here or should I open a new issue? https://help.nextcloud.com/t/unable-to-set-phone-number/111782/8 suggests either Would setting any of this fix our problem that the phone number is set and visible in the system address book but currently not shown in the profile? Thanks in advance 👍 Screenshots for the 3 points above |
Steps to reproduce
Expected behaviour
It should save the phone number.
Actual behaviour
Error Message: Ungültige Telefonnummer kann nicht festgelegt werden
I used 017612345678 as a phone number...
then 0049712345678
then +49123456789
it all didn't work...
Server configuration
cloud server - installed via the nextcloud_production_install.sh script.
postgres / php 7.4 on ubuntu 20.04, 2 cpu's 4GB RAM
The text was updated successfully, but these errors were encountered: