Skip to content
Snippets Groups Projects
Verified Commit 8405e302 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

add .envrc example for easier exporting of necessary variables, autofocus on...

add .envrc example for easier exporting of necessary variables, autofocus on username field in login screen
parent 551a026b
No related branches found
No related tags found
1 merge request!27Resolve "Autofocus on username field"
Pipeline #3787 passed with stages
in 1 minute and 52 seconds
......@@ -4,3 +4,5 @@ __pycache__
*.lock
*.pyc
*.swp
**/.envrc
**/venv
export FLASK_SECRET_KEY="TNERSINtudrfl789"
export FLASK_RUN_HOST="0.0.0.0"
export FLASK_RUN_PORT="5000"
export GRAPHQL_URL="http://localhost:5002/graphql"
export HYDRA_ADMIN_URL="http://localhost:4445"
export FLASK_ENV=development
......@@ -10,7 +10,7 @@
<form method="POST" action="/login">
{{ login_form.csrf_token }}
{{ login_form.challenge }}
{{ login_form.username(placeholder="Username") }}<br>
{{ login_form.username(placeholder="Username", autofocus=true) }}<br>
<div style="margin-top:5px">{{ login_form.password(placeholder="Password") }}</div> <br>
{{ login_form.remember }}{{ login_form.remember.label }} <br>
<div style="margin-top:5px">{{ login_form.submit }}</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment