mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): registration sends WelcomeNotification
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
4de18d8134
commit
aee1390e2c
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ from aurweb.models.ban import Ban
|
||||||
from aurweb.models.ssh_pub_key import SSHPubKey, get_fingerprint
|
from aurweb.models.ssh_pub_key import SSHPubKey, get_fingerprint
|
||||||
from aurweb.models.term import Term
|
from aurweb.models.term import Term
|
||||||
from aurweb.models.user import User
|
from aurweb.models.user import User
|
||||||
from aurweb.scripts.notify import ResetKeyNotification
|
from aurweb.scripts.notify import ResetKeyNotification, WelcomeNotification
|
||||||
from aurweb.templates import make_context, make_variable_context, render_template
|
from aurweb.templates import make_context, make_variable_context, render_template
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
@ -414,7 +414,7 @@ async def account_register_post(request: Request,
|
||||||
|
|
||||||
# Send a reset key notification to the new user.
|
# Send a reset key notification to the new user.
|
||||||
executor = db.ConnectionExecutor(db.get_engine().raw_connection())
|
executor = db.ConnectionExecutor(db.get_engine().raw_connection())
|
||||||
ResetKeyNotification(executor, user.ID).send()
|
WelcomeNotification(executor, user.ID).send()
|
||||||
|
|
||||||
context["complete"] = True
|
context["complete"] = True
|
||||||
context["user"] = user
|
context["user"] = user
|
||||||
|
|
Loading…
Add table
Reference in a new issue