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:
@@ -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("/")
|
||||
|
||||
Reference in New Issue
Block a user