Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICNML
web app
Commits
9860e99b
Commit
9860e99b
authored
5 years ago
by
Marco De Donno
Browse files
Options
Downloads
Patches
Plain Diff
Patch the vaildation of new users for admin with a security key not used
Only get the last used security key to validate new users
parent
082421ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
module.py
+1
-1
1 addition, 1 deletion
module.py
with
1 addition
and
1 deletion
module.py
+
1
−
1
View file @
9860e99b
...
...
@@ -782,7 +782,7 @@ def do_validate_signin():
user_id
=
session
[
'
user_id
'
]
q
=
config
.
db
.
query
(
"
SELECT * FROM webauthn WHERE user_id = %s ORDER BY last_usage DESC LIMIT 1
"
,
(
user_id
,
)
)
q
=
config
.
db
.
query
(
"
SELECT * FROM webauthn WHERE user_id = %s
AND usage_counter > 0
ORDER BY last_usage DESC LIMIT 1
"
,
(
user_id
,
)
)
key
=
q
.
fetchone
()
webauthn_user
=
webauthn
.
WebAuthnUser
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment