mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2025-12-08 11:39:33 +00:00
Improved admin page
This commit is contained in:
@@ -181,3 +181,4 @@ class Smtp(Email):
|
||||
log.error(e.smtp_error)
|
||||
except:
|
||||
pass
|
||||
return False
|
||||
|
||||
@@ -197,7 +197,9 @@ def generateInvite():
|
||||
email = Smtp(address)
|
||||
email.construct_invite({'expiry': valid_till,
|
||||
'code': invite['code']})
|
||||
email.send()
|
||||
response = email.send()
|
||||
if response is False or type(response) != bool:
|
||||
invite['email'] = f'Failed to send to {address}'
|
||||
try:
|
||||
with open(config['files']['invites'], 'r') as f:
|
||||
invites = json.load(f)
|
||||
|
||||
Reference in New Issue
Block a user