diff --git a/nalodeni/auth.py b/nalodeni/auth.py index d5c551f..16fc7e2 100644 --- a/nalodeni/auth.py +++ b/nalodeni/auth.py @@ -183,7 +183,7 @@ def sendRegisterTokenReg(rt): word_days = "dní" if appSettings.TOKEN_VALID_SEC < 60*60*24*5: word_days = "dny" - if appSettings.TOKEN_VALID_SEC < 60*60*24*1: + if appSettings.TOKEN_VALID_SEC <= 60*60*24*1: word_days = "den" emailSubj = 'Piráti - nalodění - registrační odkaz' diff --git a/nalodeni/views.py b/nalodeni/views.py index 5e6b746..29cb2c8 100644 --- a/nalodeni/views.py +++ b/nalodeni/views.py @@ -509,7 +509,7 @@ def profil(request): messages.info(request, "Odvolal/a jste souhlas se zpracováním osobních údajů.") send_mail( "Nalodeni: %s odvolal souhlas se zpracovanim osobnich udaju" % request.user.email, - "Stalo se tak {approxdate}".format(approxdate=datetime.now()), + "Stalo se tak {mydate}".format(mydate=request.user.dc_undo_stamp), "nalodeni@pirati.cz", [appSettings.EMAIL_RECIPIENT_GDPR], ) return save_and_redirect('/ja-pirat/profil/')