User session tracking #93587

Merged
Oleg-Komarov merged 18 commits from user-session into main 2024-08-02 16:04:09 +02:00
Showing only changes of commit 6345c8316b - Show all commits

View File

@ -263,11 +263,10 @@ def construct_new_user_session(user, session_data):
context = { context = {
"session_data": session_data, "session_data": session_data,
"user": user, "user": user,
"subject": "Security alert: new sign-in",
} }
email_body_txt = loader.render_to_string( email_body_txt = loader.render_to_string(
"bid_main/emails/new_user_session.txt", context "bid_main/emails/new_user_session.txt", context
) )
return email_body_txt, context["subject"] return email_body_txt, "Security alert: new sign-in"