Commit 42dffd13 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

AjaxController: register, fix default value of usermanagemern.user_group setting

parent 7dff980d
......@@ -47,7 +47,7 @@ class AjaxController(AbstractController):
user = User.register(cherrypy.request.db, username, email)
session = cherrypy.request.db
user_group = vispa.config("usermanagement", "user_group", "user")
user_group = vispa.config("usermanagement", "user_group", None)
if user_group:
user_group = Group.get_or_create_by_name(session, user_group)
user_group.add_user(user, Group_User_Assoc.CONFIRMED)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment