summaryrefslogtreecommitdiffstats
path: root/py-bin/jabberman.py
diff options
context:
space:
mode:
Diffstat (limited to 'py-bin/jabberman.py')
-rw-r--r--py-bin/jabberman.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/py-bin/jabberman.py b/py-bin/jabberman.py
index 11e3bdf..1c53ff1 100644
--- a/py-bin/jabberman.py
+++ b/py-bin/jabberman.py
@@ -1,6 +1,6 @@
#jabber manager
-import shelve, atexit, sha, hmac, random, os, time, re
+import shelve, atexit, sha, hmac, random, os, time, re, string
import config
from ejabberdctl import EJabberdCtl
@@ -375,6 +375,8 @@ class JabberManager:
return (False, status)
if not re.match(config.user_re, user):
+ return (False, "Benutzername enthaelt unerlaubte Zeichen.")
+ if string.lower(user) in config.forbidden_users:
return (False, "Benutzername %s nicht erlaubt." % user)
if domain not in domains:
return (False, "Domain %s nicht erlaubt." % domain)