mirror of https://github.com/jumpserver/jumpserver
commit
502657bad4
|
@ -105,4 +105,4 @@ class ApplicationUserSerializer(SystemUserSerializer):
|
|||
class ApplicationUserWithAuthInfoSerializer(ApplicationUserSerializer):
|
||||
|
||||
class Meta(ApplicationUserSerializer.Meta):
|
||||
fields = ApplicationUserSerializer.Meta.fields + ['password']
|
||||
fields = ApplicationUserSerializer.Meta.fields + ['password', 'token']
|
||||
|
|
|
@ -11,4 +11,4 @@ class Email(BackendBase):
|
|||
def send_msg(self, users, subject, message):
|
||||
from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
||||
accounts, __, __ = self.get_accounts(users)
|
||||
send_mail(subject, message, from_email, accounts)
|
||||
send_mail(subject, message, from_email, accounts, html_message=message)
|
||||
|
|
Loading…
Reference in New Issue