mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +00:00
Use FQDN instead of hostname when registering an account.
This commit is contained in:
parent
3d7de0778b
commit
7680d398a6
@ -178,11 +178,11 @@ def subcommand_register(arguments):
|
||||
|
||||
username = arguments.username
|
||||
password = arguments.password
|
||||
hostname = subprocess.check_output(['hostname'])
|
||||
fqdn = socket.getfqdn()
|
||||
|
||||
try:
|
||||
output = subprocess.check_output(['ejabberdctl', 'register',
|
||||
username, hostname, password])
|
||||
username, fqdn, password])
|
||||
print(output.decode())
|
||||
except subprocess.CalledProcessError as e:
|
||||
print('Failed to register XMPP account:', e.output.decode())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user