This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
extends: [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"@vue/typescript/recommended", | |
"prettier/@typescript-eslint", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"lib": ["ES2020"], | |
"module": "commonjs", | |
"target": "ES2020" | |
"strict": true, | |
"importHelpers": true, | |
"moduleResolution": "node", | |
"resolveJsonModule": true, | |
"esModuleInterop": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIIljCCB36gAwIBAgIQdSHfCVs4iuOJe4Ja2rbxdjANBgkqhkiG9w0BAQsFADBiMRwwGgYDVQQDExNBcHBsZSBJU1QgQ0EgMiAtIEcxMSAwHgYDVQQLExdDZXJ0aWZpY2F0aW9uIEF1dGhvc ml0eTETMBEGA1UEChMKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMwHhcNMTkwMzE0MTc1MDEwWhcNMjEwNDEyMTc1MDEwWjB7MRswGQYDVQQDDBJhcGkucHVzaC5hcHBsZS5jb20xJTAjBgNVBA sMHG1hbmFnZW1lbnQ6aWRtcy5ncm91cC41MzM1OTkxEzARBgNVBAoMCkFwcGxlIEluYy4xEzARBgNVBAgMCkNhbGlmb3JuaWExCzAJBgNVBAYTAlVTMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8 AMIIBCgKCAQEAtWbNpQnuwvVCjPhif9E3mYASUhteM5FWWFDIjkZ8dHPuhXnk8NX46My2VTQeEHS8OGgfG8ruloU7syiRZSkCkq6WaosPXMJ+eBRbHVqGAIClBE/ LdCd6uMoMYbMOX3W2ch9Q5mDrO0IOCOEnGhzFQNwF0xfRcRwG1+tw7CQpIfR9XoKkyxBZ8LQfCX7NNcmHDHS26F9jFaCrS/CnK/rzTl31PBJOhq42VsqfYo9vGp0JQxJgN9R6/ EAvEDwCmc5LU5ZBxMVo2LvH9mXn3J7+VuZz1yEsLSQfLhWiH9mDuEAWn5MGJU9CjnY8zdvEAxk7OVfwhcn6L/SrMAZlHja2VwIDAQABo4IFLTCCBSkwDAYDVR0TAQH/ BAIwADAfBgNVHSMEGDAWgBTYepREfJBwkBae3RecAUQDhtYqKTB+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.r a div{ | |
display: none | |
} | |
.ab_ctl{ | |
display: none | |
} | |
.r{ | |
margin-top: -25px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('ready', function () { | |
// open tab when page is loaded if hash is present in the URL | |
let activeTab = document.location.hash || '#details'; // your default tab here | |
$(`[href='${activeTab}']`).not('.no-auto-tab').tab("show"); // add .no-auto-tab if you don't want it to automatically open | |
// update location hash as tabs are switched | |
$('a[data-toggle="tab"]').not('.no-auto-tab').on('shown.bs.tab', function (e) { | |
e.preventDefault(); | |
window.location.hash = $(e.target).attr("href"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Implementing TFA | |
... | |
from comms.comms import send_otp | |
send_otp(self.request, provider="twilio") | |
... | |
if not verify_otp(self.request, '42576'): | |
return Response({ | |
"success": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
country_code_data = [ | |
{'code': '+7840'}, | |
{'code': '+93'}, | |
{'code': '+355'}, | |
{'code': '+213'}, | |
{'code': '+1684'}, | |
{'code': '+376'}, | |
{'code': '+244'}, | |
{'code': '+1264'}, |