diff --git a/app/__init__.py b/app/__init__.py index bce65ed98..7fca5d4c4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -184,15 +184,15 @@ def create_app(application): # make and store the state state = generate_token( - str(request.remote_addr), - current_app.config["SECRET_KEY"], - current_app.config["DANGEROUS_SALT"], + str(request.remote_addr), + current_app.config["SECRET_KEY"], + current_app.config["DANGEROUS_SALT"], ) state_key = f"login-state-{unquote(state)}" redis_client.set(state_key, state, ex=ttl) - # make and store the nonce + # make and store the nonce nonce = secrets.token_urlsafe() nonce_key = f"login-nonce-{unquote(nonce)}" redis_client.set(nonce_key, nonce, ex=ttl) @@ -204,6 +204,7 @@ def create_app(application): return {'initial_signin_url': url} + notify_environment = os.environ["NOTIFY_ENVIRONMENT"] application.config.from_object(configs[notify_environment])