0005-app_settings-add-sms-related-authentic2-settings-692.patch
src/authentic2/app_settings.py | ||
---|---|---|
295 | 295 |
A2_EMAILS_IP_RATELIMIT=Setting( |
296 | 296 |
default='10/h', definition='Maximum rate of email sendings triggered by the same IP address.' |
297 | 297 |
), |
298 |
A2_SMS_IP_RATELIMIT=Setting( |
|
299 |
default='10/h', definition='Maximum rate of SMSs triggered by the same IP address.' |
|
300 |
), |
|
298 | 301 |
A2_EMAILS_ADDRESS_RATELIMIT=Setting( |
299 | 302 |
default='3/d', definition='Maximum rate of emails sent to the same email address.' |
300 | 303 |
), |
304 |
A2_SMS_RATELIMIT=Setting( |
|
305 |
default='1/h', definition='Maximum rate of SMSs sent to the same email address.' |
|
306 |
), |
|
301 | 307 |
A2_USER_DELETED_KEEP_DATA=Setting( |
302 | 308 |
default=['email', 'uuid', 'phone'], definition='User data to keep after deletion' |
303 | 309 |
), |
... | ... | |
307 | 313 |
A2_TOKEN_EXISTS_WARNING=Setting( |
308 | 314 |
default=True, definition='If an active token exists, warn user before generating a new one.' |
309 | 315 |
), |
316 |
A2_SMS_CODE_EXISTS_WARNING=Setting( |
|
317 |
default=True, definition='If an active SMS code exists, warn user before generating a new one.' |
|
318 |
), |
|
310 | 319 |
A2_DUPLICATES_THRESHOLD=Setting( |
311 | 320 |
default=0.7, definition='Trigram similarity threshold for considering user as duplicate.' |
312 | 321 |
), |
313 |
- |