#5032 (Sending email verification code fails)
by Luc Saffre · in Developers
Résumé
Concepts sous-jacents
- #5034 (Write a test case to cover verification and welcome procedure for new users) (by Luc Saffre in Developers)
Commentaires
- 3 ans, 3 mois ago by Luc Saffre about #5032 (Sending email verification code fails) : I will close this ticket now after having spawned #5034.
- 3 ans, 3 mois ago by Luc Saffre about #5032 (Sending email verification code fails) : I found the explanation for the bug: in models.py I had "import datetime", but in ui.py I say "from datetime import datetime" (and models.py says "from .ui import *" near the end.
- 3 ans, 3 mois ago by Luc Saffre about #5032 (Sending email verification code fails) : Actually the bug is not even trivial... or at least not for me.. I didn't yet manage to fix it locally.
- 3 ans, 3 mois ago by Luc Saffre about #5032 (Sending email verification code fails) : Rather than just fixing it, it would be good to add a test case that covers it.
- 3 ans, 3 mois ago by Luc Saffre about #5032 (Sending email verification code fails) : The bug itself is trivial:
File "...env/lib/python3.9/site-packages/lino/modlib/users/models.py", line 149, in is_verification_code_expired return (self.verification_code_sent_on + datetime.timedelta( AttributeError: type object 'datetime.datetime' has no attribute 'timedelta' - 3 ans, 3 mois ago by Luc Saffre about #5032 (Sending email verification code fails) : Created new Ticket #5032 (Sending email verification code fails).