diff --git a/docs/en_US/release_notes_6_15.rst b/docs/en_US/release_notes_6_15.rst index ee87e7d07..788f983f9 100644 --- a/docs/en_US/release_notes_6_15.rst +++ b/docs/en_US/release_notes_6_15.rst @@ -47,5 +47,6 @@ Bug fixes | `Issue #5352 `_ - Fixed error occurring while LDAP authentication for a user with multiple email attributes. | `Issue #5367 `_ - Ensure that the correct value should be returned if an exception occurs while decoding the password. | `Issue #5368 `_ - Fixed the issue while downloading the file from the file manager. + | `Issue #5386 `_ - Ensure that the login form is hidden if the authentication source is OAuth2 or Kerberos. | `Issue #5402 `_ - Ensure that scroll bar on browser tree should be visible on windows resize. | `Issue #5405 `_ - Fixed the cross-site scripting vulnerability. diff --git a/web/pgadmin/templates/security/login_user.html b/web/pgadmin/templates/security/login_user.html index 884562d21..175c9c2f6 100644 --- a/web/pgadmin/templates/security/login_user.html +++ b/web/pgadmin/templates/security/login_user.html @@ -10,11 +10,14 @@
{{ login_user_form.hidden_tag() }} {% set user_language = request.cookies.get('PGADMIN_LANGUAGE') or 'en' %} - {{ render_username_with_errors(login_user_form.email, "text") }} - {{ render_field_with_errors(login_user_form.password, "password") }} - -
+ {% if not ((config.OAUTH2 in config.AUTHENTICATION_SOURCES or config.KERBEROS in config.AUTHENTICATION_SOURCES) and config.AUTHENTICATION_SOURCES | length == 1 + or (config.OAUTH2 in config.AUTHENTICATION_SOURCES and config.KERBEROS in config.AUTHENTICATION_SOURCES) and config.AUTHENTICATION_SOURCES | length == 2) %} + {{ render_username_with_errors(login_user_form.email, "text") }} + {{ render_field_with_errors(login_user_form.password, "password") }} +
{{ _('Forgotten your password?', url=url_for('browser.forgot_password')) }}
+ {% endif %} +