mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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....
14 lines
615 B
HTML
14 lines
615 B
HTML
{% extends "security/panel.html" %}
|
|
{% block panel_title %}pgAdmin Login{% endblock %}
|
|
{% block panel_body %}
|
|
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
|
|
{{ login_user_form.hidden_tag() }}
|
|
<fieldset>
|
|
{{ render_field_with_errors(login_user_form.email, "text") }}
|
|
{{ render_field_with_errors(login_user_form.password, "password") }}
|
|
<input class="btn btn-lg btn-success btn-block" type="submit" value="Login">
|
|
</fieldset>
|
|
</form>
|
|
<span class="help-block">Forgotten your <a href="{{ url_for('security.forgot_password') }}">password</a>?</span>
|
|
{% endblock %}
|