Don't try to render security URLs in desktop mode. Fixes #2952. Fixes #2922

This commit is contained in:
Murtuza Zabuawala
2017-12-18 09:15:36 +00:00
committed by Dave Page
parent 937984f2dc
commit bceb6aef3c
5 changed files with 9 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
{% extends "security/panel.html" %}
{% block panel_title %}{{ _('%(appname)s Login', appname=config.APP_NAME) }}{% endblock %}
{% block panel_body %}
{% if config.SERVER_MODE %}
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
{{ login_user_form.hidden_tag() }}
{% set user_language = request.cookies.get('PGADMIN_LANGUAGE') or 'en' %}
@@ -21,4 +22,5 @@
</fieldset>
</form>
<span class="help-block">{{ _('Forgotten your <a href="%(url)s">password</a>?', url=url_for('browser.forgot_password')) }}</span>
{% endif %}
{% endblock %}