Projet

Général

Profil

0002-settings-add-supported-phone-country-codes-69221.patch

Paul Marillonnet, 21 septembre 2022 09:34

Télécharger (1,02 ko)

Voir les différences:

Subject: [PATCH 2/5] settings: add supported phone country codes (#69221)

 src/authentic2/settings.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
src/authentic2/settings.py
372 372
SELECT2_JS = '/static/xstatic/select2.min.js'
373 373
SELECT2_CSS = '/static/xstatic/select2.min.css'
374 374

  
375
# Phone prefixes by country for phone number as authentication identifier
376
PHONE_COUNTRY_CODES = {
377
    '32': 'BE',  # Belgium
378
    '33': 'FR',  # Metropolitan France
379
    '262': 'FR',  # Réunion
380
    '508': 'FR',  # Saint Pierre and Miquelon
381
    '590': 'FR',  # Guadeloupe
382
    '594': 'FR',  # French Guiana
383
    '596': 'FR',  # Martinique
384
}
385

  
375 386
#
376 387
# Load configuration file
377 388
#
378
-