Browse Source
Merge pull request #1103 from grindtildeath/9.0_fix_auth_oauth_special_chars_name
[9.0][FIX] Auth_totp : ensure no special chars are passed to totp.provisioning_uri
pull/602/merge
Dave Lasley
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
auth_totp/__openerp__.py
-
auth_totp/wizards/res_users_authenticator_create.py
|
@ -5,7 +5,7 @@ |
|
|
{ |
|
|
{ |
|
|
'name': 'MFA Support', |
|
|
'name': 'MFA Support', |
|
|
'summary': 'Allows users to enable MFA and add optional trusted devices', |
|
|
'summary': 'Allows users to enable MFA and add optional trusted devices', |
|
|
'version': '9.0.1.0.0', |
|
|
|
|
|
|
|
|
'version': '9.0.1.0.1', |
|
|
'category': 'Extra Tools', |
|
|
'category': 'Extra Tools', |
|
|
'website': 'https://laslabs.com/', |
|
|
'website': 'https://laslabs.com/', |
|
|
'author': 'LasLabs, Odoo Community Association (OCA)', |
|
|
'author': 'LasLabs, Odoo Community Association (OCA)', |
|
|
|
@ -74,7 +74,7 @@ class ResUsersAuthenticatorCreate(models.TransientModel): |
|
|
|
|
|
|
|
|
totp = pyotp.TOTP(record.secret_key) |
|
|
totp = pyotp.TOTP(record.secret_key) |
|
|
provisioning_uri = totp.provisioning_uri( |
|
|
provisioning_uri = totp.provisioning_uri( |
|
|
record.user_id.display_name, |
|
|
|
|
|
|
|
|
record.user_id.display_name.encode('utf-8'), |
|
|
issuer_name=record.user_id.company_id.display_name, |
|
|
issuer_name=record.user_id.company_id.display_name, |
|
|
) |
|
|
) |
|
|
provisioning_uri = urllib.quote(provisioning_uri) |
|
|
provisioning_uri = urllib.quote(provisioning_uri) |
|
|