Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-privacyidea
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
simplesamlphp-module-privacyidea
Commits
a4e16a10
Verified
Commit
a4e16a10
authored
1 year ago
by
Peter Bolha
Browse files
Options
Downloads
Patches
Plain Diff
fix: enable backup code checking
parent
90f4fc88
No related branches found
No related tags found
1 merge request
!25
Fix TOTP failcounter handling
Pipeline
#359211
passed
1 year ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Auth/Utils.php
+8
-1
8 additions, 1 deletion
lib/Auth/Utils.php
with
8 additions
and
1 deletion
lib/Auth/Utils.php
+
8
−
1
View file @
a4e16a10
...
...
@@ -103,7 +103,7 @@ class Utils
self
::
handlePrivacyIDEAException
(
$e
,
$state
);
}
}
}
else
{
}
else
if
(
$formParams
[
'mode'
]
===
'totp'
)
{
try
{
// limit otp validation to totp tokens to prevent incrementing of webauthn failcounter
$params
[
"type"
]
=
"totp"
;
...
...
@@ -123,6 +123,13 @@ class Utils
}
catch
(
\Exception
$e
)
{
self
::
handlePrivacyIDEAException
(
$e
,
$state
);
}
}
else
{
// Backup code validation
try
{
$response
=
$pi
->
validateCheck
(
$username
,
$formParams
[
'otp'
],
$transactionID
);
}
catch
(
\Exception
$e
)
{
self
::
handlePrivacyIDEAException
(
$e
,
$state
);
}
}
$counter
=
$formParams
[
'loadCounter'
];
$state
[
'privacyidea:privacyidea:ui'
][
'loadCounter'
]
=
$counter
+
1
;
...
...
This diff is collapsed.
Click to expand it.
Jednotné přihlášení test
@9008807
mentioned in commit
3fde11fc
·
1 year ago
mentioned in commit
3fde11fc
mentioned in commit 3fde11fc8cc4144a166201a2cc38f7a290800602
Toggle commit list
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