mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
More error checking on Jabber, also presents error message to user if service addition fails
This commit is contained in:
@@ -130,6 +130,8 @@ def service_add(request):
|
||||
acc.save()
|
||||
except ExistingUser:
|
||||
error = "User by this name already exists, your account has not been created"
|
||||
except ServiceError:
|
||||
error = "A error occured while trying to create the Service Account, please try again later"
|
||||
else:
|
||||
error = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user