mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-26 08:16:44 -06:00
10515431c7
A user authentication module based on flask-security is added, which allows users to login and change/recover passwords etc. Custom templates are included for the user/password UIs. A new setup script will initialise the user (and later settings) DB, adding the first user and granting them an Administrator role. A redirects blueprint module is added to handle simple URL redirects. A browser module is added and currently renders a skeleton page with a menu bar, gravatar and jumbotron. NOTE FOR LATER: Currently this code might make the nice basis for any web app that needs user management and plugins. Hmmm....
13 lines
525 B
HTML
13 lines
525 B
HTML
{%- with messages = get_flashed_messages(with_categories=true) -%}
|
|
{% if messages %}
|
|
<div style="position: fixed; top: 20px; right: 20px; width: 400px; z-index: 9999">
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }} alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{%- endwith %}
|