correctly check JID when creating an anonymous account. Fixes #7116
This commit is contained in:
parent
fdb63bcd0c
commit
2501cf346c
|
@ -3655,7 +3655,11 @@ class AccountCreationWizardWindow:
|
|||
password = self.xml.get_object('password_entry').get_text().decode(
|
||||
'utf-8')
|
||||
|
||||
jid = username + '@' + server
|
||||
if anonymous:
|
||||
jid = ''
|
||||
else:
|
||||
jid = username + '@'
|
||||
jid += server
|
||||
# check if jid is conform to RFC and stringprep it
|
||||
try:
|
||||
jid = helpers.parse_jid(jid)
|
||||
|
|
Loading…
Reference in New Issue