Tryton module to authenticate users via SMS
Project description
The SMS authentication module allows to authenticate users via SMS. There are two authentication methods sms and password_sms which can be used in the authentications list of the session section in the configuration.
The sms method just send a code via SMS to the user. Then the user needs to transcribe the code into the login dialog.
The password_sms method send a code only after the user entered a valid password. This provides a two-factor authentication method.
Both methods require that the user has a Mobile phone number defined otherwise he can not be authenticated with those methods.
Configuration
The configuration of the module is set in the authentication_sms section.
function
The fully qualified name of the method to send SMS. It must take three arguments: text, to and from. This method is required to send SMS.
from
The number from which the SMS are sent.
length
The length of the generated code. Default: 6
ttl
The time to live for the generated codes in seconds. Default: 300
name
The name used in the SMS text. Default: Tryton
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for trytond_authentication_sms-5.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f9b1284c9f5a988b86964fcc05f3fb6fc38d37927ac23cb67032e691ffb18c |
|
MD5 | 37308340e1c5f5b63bf509a15e5a9d5b |
|
BLAKE2b-256 | cf614e4796d9891587b1b1c0f586672bdb6298531ceb970e3931e33a70ec33fd |
Hashes for trytond_authentication_sms-5.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3af1e9337e66aa8c2bc3de3f64a7c197855234337425f3933065a8c1f4e97aab |
|
MD5 | cbe853208313a0a858a98795aebf6282 |
|
BLAKE2b-256 | 2b2e79c1e9183e2a3c9ea75f92f0de52ee6bb6d4663f112bd0b67e47c03c8ee6 |