def METHOD_NAME(app: web.Application):
    """Setting up login subsystem in application"""
    setup_db(app)
    setup_redis(app)
    setup_products(app)
    setup_rest(app)
    setup_email(app)
    setup_invitations(app)
    # routes
    app.router.add_routes(handlers_auth.routes)
    app.router.add_routes(handlers_confirmation.routes)
    app.router.add_routes(handlers_registration.routes)
    app.router.add_routes(handlers_change.routes)
    app.router.add_routes(handlers_2fa.routes)
    app.router.add_routes(api_keys_handlers.routes)
    _setup_login_options(app)
    setup_login_storage(app)
    app.on_startup.append(_resolve_login_settings_per_product)
    return True