Skip to content

Commit

Permalink
leave guests unregistered
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed Mar 23, 2015
1 parent 462f72c commit a0bed8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mumble.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def authenticate(self, name, pw, certificates, certhash, certstrong, current=Non
try:
db.session.query(db.User).filter(db.User.username==name).one()
except NoResultFound:
new_name = '[G] ' + name
return random.randint(1000000000, 2147483647), new_name, [] # guest
return -2, new_name, [] # guest

user = db.User.login(name, pw)
if not user:
Expand Down

0 comments on commit a0bed8a

Please sign in to comment.