Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
a9971f96
Commit
a9971f96
authored
Aug 08, 2017
by
Benjamin Fischer
Browse files
[AjaxController] fixed register
parent
4b1fad21
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/controller/ajax.py
View file @
a9971f96
...
...
@@ -50,7 +50,7 @@ class AjaxController(AbstractController):
user_group
=
vispa
.
config
(
"usermanagement"
,
"user_group"
,
"user"
)
if
user_group
:
user_group
=
Group
.
get_or_create_by_name
(
session
,
user_group
)
user_group
.
add_user
(
session
,
user
,
Group_User_Assoc
.
CONFIRMED
)
user_group
.
add_user
(
user
,
Group_User_Assoc
.
CONFIRMED
)
if
vispa
.
config
(
"web"
,
"registration.autoactive"
,
True
):
return
{
"hash"
:
user
.
hash
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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