Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add custom cert expiry notification message #2066

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
blacked
  • Loading branch information
conlan0 committed Nov 9, 2024
commit 1c647e10e0124ba7e7364e8c9d9f62d2c69c39b0
6 changes: 5 additions & 1 deletion api/tacticalrmm/core/views.py
Original file line number Diff line number Diff line change
@@ -107,7 +107,11 @@ def clear_cache(request):
@api_view()
def dashboard_info(request):
from core.utils import token_is_expired
from tacticalrmm.utils import get_latest_trmm_ver, runcmd_placeholder_text, certexpiry_notification_text
from tacticalrmm.utils import (
get_latest_trmm_ver,
runcmd_placeholder_text,
certexpiry_notification_text,
)

core_settings = get_core_settings()
return Response(
3 changes: 2 additions & 1 deletion api/tacticalrmm/tacticalrmm/utils.py
Original file line number Diff line number Diff line change
@@ -469,5 +469,6 @@ def runcmd_placeholder_text() -> dict[str, str]:
}
return ret


def certexpiry_notification_text() -> str:
return getattr(settings, "CERTEXPIRY_NOTIFICATION_TEXT", "")
return getattr(settings, "CERTEXPIRY_NOTIFICATION_TEXT", "")
Loading