Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
Postal Owl
Commits
47ed65e3
Commit
47ed65e3
authored
Sep 28, 2021
by
Martin Mareš
Browse files
Bugfix in CAS registration
parent
e9067925
Changes
1
Hide whitespace changes
Inline
Side-by-side
owl.py
View file @
47ed65e3
...
...
@@ -1379,7 +1379,7 @@ def session_from_cas(user, attrs):
email
=
primary_cas_email
(
attrs
[
'mail'
])
db_query
(
"""
INSERT INTO owl_users(ukco, first_name, last_name, email)
VALUES (%s, %s, %s)
VALUES (%s, %s,
%s,
%s)
RETURNING uid, ukco, first_name, last_name, email, is_admin, inline_att
"""
,
(
user
,
attrs
[
'givenname'
],
attrs
[
'sn'
],
email
))
row
=
db
.
fetchone
()
...
...
Write
Preview
Supports
Markdown
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