mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 08:29:49 -04:00
Fixed indenting
This commit is contained in:
@@ -184,15 +184,15 @@ def create_app(application):
|
|||||||
|
|
||||||
# make and store the state
|
# make and store the state
|
||||||
state = generate_token(
|
state = generate_token(
|
||||||
str(request.remote_addr),
|
str(request.remote_addr),
|
||||||
current_app.config["SECRET_KEY"],
|
current_app.config["SECRET_KEY"],
|
||||||
current_app.config["DANGEROUS_SALT"],
|
current_app.config["DANGEROUS_SALT"],
|
||||||
)
|
)
|
||||||
|
|
||||||
state_key = f"login-state-{unquote(state)}"
|
state_key = f"login-state-{unquote(state)}"
|
||||||
redis_client.set(state_key, state, ex=ttl)
|
redis_client.set(state_key, state, ex=ttl)
|
||||||
|
|
||||||
# make and store the nonce
|
# make and store the nonce
|
||||||
nonce = secrets.token_urlsafe()
|
nonce = secrets.token_urlsafe()
|
||||||
nonce_key = f"login-nonce-{unquote(nonce)}"
|
nonce_key = f"login-nonce-{unquote(nonce)}"
|
||||||
redis_client.set(nonce_key, nonce, ex=ttl)
|
redis_client.set(nonce_key, nonce, ex=ttl)
|
||||||
@@ -204,6 +204,7 @@ def create_app(application):
|
|||||||
|
|
||||||
return {'initial_signin_url': url}
|
return {'initial_signin_url': url}
|
||||||
|
|
||||||
|
|
||||||
notify_environment = os.environ["NOTIFY_ENVIRONMENT"]
|
notify_environment = os.environ["NOTIFY_ENVIRONMENT"]
|
||||||
|
|
||||||
application.config.from_object(configs[notify_environment])
|
application.config.from_object(configs[notify_environment])
|
||||||
|
|||||||
Reference in New Issue
Block a user