SYMBOL INDEX (108 symbols across 12 files) FILE: alembic/env.py function run_migrations_offline (line 42) | def run_migrations_offline(): function run_migrations_online (line 66) | def run_migrations_online(): FILE: alembic/versions/130b5c2275d8_update_ip_token_association.py function upgrade (line 23) | def upgrade(): function downgrade (line 48) | def downgrade(): FILE: alembic/versions/140a25d5f185_create_tokens_table.py function upgrade (line 24) | def upgrade(): function downgrade (line 70) | def downgrade(): FILE: matrix_registration/api.py function validate_token (line 38) | def validate_token(form, token): function validate_username (line 59) | def validate_username(form, username): function validate_password (line 95) | def validate_password(form, password): class RegistrationForm (line 115) | class RegistrationForm(Form): function get_request_ips (line 145) | def get_request_ips(request): function verify_token (line 158) | def verify_token(token): function unauthorized (line 165) | def unauthorized(): function element_logo (line 171) | def element_logo(): function register (line 179) | def register(): function create_account_from_form (line 222) | def create_account_from_form(form): function get_token (line 270) | def get_token(token): function get_tokens (line 277) | def get_tokens(): function create_token (line 281) | def create_token(data): function update_token (line 307) | def update_token(token, data): function delete_token (line 321) | def delete_token(token): function health (line 334) | def health(): function version (line 340) | def version(): function token (line 352) | def token(): function token_status (line 365) | def token_status(token): FILE: matrix_registration/app.py function create_app (line 18) | def create_app(testing=False): function cli (line 40) | def cli(info, config_path): function run_server (line 57) | def run_server(info): function generate_token (line 78) | def generate_token(maximum, expires): function status_token (line 87) | def status_token(status, list, disable): FILE: matrix_registration/config.py class Config (line 28) | class Config: method __init__ (line 35) | def __init__(self, path=None, data=None): method load (line 46) | def load(self): method load_from_file (line 59) | def load_from_file(self): method load_secrets (line 92) | def load_secrets(self): method check_config_locations (line 106) | def check_config_locations(self): method apply_options (line 138) | def apply_options(self): method ask_for_options (line 147) | def ask_for_options(self, sample_options): method update (line 174) | def update(self, data): FILE: matrix_registration/limiter.py function get_real_user_ip (line 7) | def get_real_user_ip() -> str: function get_default_rate_limit (line 12) | def get_default_rate_limit() -> str: FILE: matrix_registration/matrix_api.py function create_account (line 11) | def create_account( function _get_nonce (line 70) | def _get_nonce(server_location): FILE: matrix_registration/tokens.py function random_readable_string (line 29) | def random_readable_string(length=3, wordlist=WORD_LIST_PATH): class IP (line 46) | class IP(db.Model): method __repr__ (line 51) | def __repr__(self): class Token (line 55) | class Token(db.Model): method __init__ (line 69) | def __init__(self, **kwargs): method __repr__ (line 78) | def __repr__(self): method toDict (line 81) | def toDict(self): method active (line 95) | def active(self): method use (line 103) | def use(self, ip_address=False): method disable (line 111) | def disable(self): class Tokens (line 118) | class Tokens: method __init__ (line 119) | def __init__(self): method __repr__ (line 124) | def __repr__(self): method toList (line 130) | def toList(self): method load (line 136) | def load(self): method get_token (line 145) | def get_token(self, token_name): method active (line 153) | def active(self, token_name): method use (line 160) | def use(self, token_name, ip_address=False): method update (line 169) | def update(self, token_name, data): method disable (line 185) | def disable(self, token_name): method delete (line 194) | def delete(self, token_name): method new (line 204) | def new(self, expiration_date=None, max_usage=False): FILE: matrix_registration/translation.py function get_translations (line 12) | def get_translations(lang="en", replacements={}): function _get_translations (line 21) | def _get_translations(lang="en", replacements={}): FILE: setup.py function read (line 11) | def read(*parts): function find_version (line 16) | def find_version(*file_paths): FILE: tests/test_registration.py function mock_new_user (line 94) | def mock_new_user(username): function mocked__get_nonce (line 113) | def mocked__get_nonce(server_location): function mocked_requests_post (line 119) | def mocked_requests_post(*args, **kwargs): class TokensTest (line 182) | class TokensTest(unittest.TestCase): method setUp (line 183) | def setUp(self): method tearDown (line 196) | def tearDown(self): method test_random_readable_string (line 199) | def test_random_readable_string(self): method test_tokens_empty (line 205) | def test_tokens_empty(self): method test_tokens_disable (line 216) | def test_tokens_disable(self): method test_tokens_load (line 239) | def test_tokens_load(self): method test_tokens_new (line 299) | def test_tokens_new(self, expiration_date, max_usage): method test_tokens_active_form (line 328) | def test_tokens_active_form(self, expiration_date, max_usage, times_us... method test_tokens_active (line 353) | def test_tokens_active(self, expiration_date, active): method test_tokens_repr (line 371) | def test_tokens_repr(self, name): method test_token_repr (line 377) | def test_token_repr(self): class ApiTest (line 397) | class ApiTest(unittest.TestCase): method setUp (line 398) | def setUp(self): method tearDown (line 411) | def tearDown(self): method test_register (line 444) | def test_register( method test_register_wrong_hs (line 480) | def test_register_wrong_hs(self, mock_get, mock_nonce): method test_register_wrong_secret (line 503) | def test_register_wrong_secret(self, mock_get, mock_nonce): method test_get_tokens (line 522) | def test_get_tokens(self): method test_error_get_tokens (line 541) | def test_error_get_tokens(self): method test_post_token (line 568) | def test_post_token(self, expiration_date, max_usage, parsed_date): method test_error_post_token (line 594) | def test_error_post_token(self): method test_patch_token (line 633) | def test_patch_token(self): method test_error_patch_token (line 655) | def test_error_patch_token(self): method test_delete_token (line 705) | def test_delete_token(self): method test_error_delete_token (line 735) | def test_error_delete_token(self): method test_get_token (line 776) | def test_get_token(self, expiration_date, max_usage, parsed_date): method test_error_get_token (line 798) | def test_error_get_token(self): method test_rate_limit_exempt (line 834) | def test_rate_limit_exempt(self): class ConfigTest (line 855) | class ConfigTest(unittest.TestCase): method test_config_update (line 856) | def test_config_update(self): method test_config_path (line 871) | def test_config_path(self): class CliTest (line 883) | class CliTest(unittest.TestCase): method setUp (line 887) | def setUp(self): method tearDown (line 895) | def tearDown(self): method test_create_token (line 899) | def test_create_token(self):