openwisp / openwisp-users

Implementation of user management and multi-tenancy for OpenWISP
https://openwisp.io/docs/dev/users/
BSD 3-Clause "New" or "Revised" License
163 stars 74 forks source link

[fix] Support phone numbers with leading zero in auth backend #377

Closed nemesifier closed 5 months ago

nemesifier commented 5 months ago

This fix allows users of countries which use leading zeros in their national phone numbers to authenticate successfully by using the version of their number with the leading zero, which without this patch fails to be recognized.

coveralls commented 5 months ago

Coverage Status

coverage: 97.923%. remained the same when pulling af6214e5c9ee0023d80af1e32b5ab78009589b06 on fixes/auth-backend-leading-zero into 8a39e488b0b955c7322f6df7927d2adb71ce7caf on master.