Update Casdoor configuration and enhance user experience in the application. Changed CASDOOR_ENDPOINT and CASDOOR_REDIRECT_URI to use secure URLs. Improved login message to prompt users in Chinese. Added session cookie settings for cross-domain SSO. Cleaned up flash messages on successful login. Updated logging to reflect user actions and application startup events.
This commit is contained in:
@@ -95,7 +95,13 @@
|
||||
|
||||
<div class="container mt-4">
|
||||
{% if not request.endpoint == 'login' %}
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% with raw_messages = get_flashed_messages() %}
|
||||
{% set messages = [] %}
|
||||
{% for m in raw_messages %}
|
||||
{% if not (current_user.is_authenticated and m == '请先登录以访问此页面') %}
|
||||
{% set _ = messages.append(m) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if messages %}
|
||||
<div class="modal" id="flashModal" tabindex="-1" style="display: block; background: rgba(0,0,0,0.5);">
|
||||
<div class="modal-dialog modal-dialog-centered" style="z-index: 1060;">
|
||||
|
||||
Reference in New Issue
Block a user