new apps.lyric.urls, .tests.test_views files to test & execute mock email sending; apps.lyric.models, .tests.test_models now test & execute unique token autogen to integrate w. magic link login using only email; core.settings updated w. new urlpatterns to accommodate

This commit is contained in:
Disco DeDisco
2026-01-30 16:21:32 -05:00
parent d724e03c3c
commit 4b1906b1ee
7 changed files with 80 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
from django.shortcuts import render
from django.core.mail import send_mail
from django.shortcuts import redirect
# Create your views here.
def send_login_email(request):
email = request.POST["email"]
send_mail("A magic login link for your Dashboard", "magic link sample body", "adman@howdy.earthmanrpg.me", [email])
return redirect("/")