Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
f4b654dc
Commit
f4b654dc
authored
Sep 02, 2016
by
Gero Müller
Browse files
fix register
parent
1f5b8481
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/controller/ajax.py
View file @
f4b654dc
...
...
@@ -48,8 +48,9 @@ class AjaxController(AbstractController):
session
=
cherrypy
.
request
.
db
user_group
=
vispa
.
config
(
"usermanagement"
,
"user_group"
,
"user"
)
user_group
=
Group
.
get_by_name
(
session
,
user_group
)
user_group
.
add_user
(
session
,
user
,
Group_User_Assoc
.
CONFIRMED
)
if
user_group
:
user_group
=
Group
.
get_or_create_by_name
(
session
,
user_group
)
user_group
.
add_user
(
session
,
user
,
Group_User_Assoc
.
CONFIRMED
)
if
vispa
.
config
(
"web"
,
"registration.autoactive"
,
True
):
return
{
"hash"
:
user
.
hash
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment