mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
447 B
18 lines
447 B
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from django.dispatch import Signal, receiver
|
|
|
|
from common.utils import get_logger
|
|
|
|
logger = get_logger(__file__)
|
|
on_user_created = Signal(providing_args=['user', 'request'])
|
|
|
|
|
|
@receiver(on_user_created)
|
|
def send_user_add_mail_to_user(sender, user=None, **kwargs):
|
|
from .utils import send_user_created_mail
|
|
logger.debug("Receive asset create signal, update asset hardware info")
|
|
send_user_created_mail(user)
|
|
|