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
662b0906
Verified
Commit
662b0906
authored
3 years ago
by
Pavel Břoušek
Browse files
Options
Downloads
Patches
Plain Diff
fix: improve error messages
parent
b84f82e9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dictionaries/privacyidea.definition.json
+4
-4
4 additions, 4 deletions
dictionaries/privacyidea.definition.json
dictionaries/privacyidea.translation.json
+4
-4
4 additions, 4 deletions
dictionaries/privacyidea.translation.json
www/FormBuilder.php
+3
-8
3 additions, 8 deletions
www/FormBuilder.php
with
11 additions
and
16 deletions
dictionaries/privacyidea.definition.json
+
4
−
4
View file @
662b0906
...
...
@@ -45,7 +45,7 @@
"en"
:
"Unable to proceed with Web Authn because the context is insecure!"
},
"alert_webauthn_unavailable"
:
{
"en"
:
"Could not load WebAuthn
library
. Please try again or use other
token
."
"en"
:
"Could not load WebAuthn
, your device probably does not support it
. Please try again or use
an
other
method
."
},
"alert_webAuthnSignRequest_error"
:
{
"en"
:
"Error while signing WebAuthnSignRequest:"
...
...
@@ -54,7 +54,7 @@
"en"
:
"Unable to proceed with U2F because the context is insecure!"
},
"alert_u2f_unavailable"
:
{
"en"
:
"Could not load U2F
library
. Please try again or use other
token
."
"en"
:
"Could not load U2F
, your device probably does not support it
. Please try again or use
an
other
method
."
},
"alert_U2FSignRequest_error"
:
{
"en"
:
"Error while signing U2FSignRequest:"
...
...
@@ -62,8 +62,8 @@
"tryAgain"
:
{
"en"
:
"Try Again"
},
"
incorrect_otp
"
:
{
"en"
:
"
You have entered incorrect OTP. Please try again or use another toke
n."
"
error_message
"
:
{
"en"
:
"
Verification was not successful. Please try agai
n."
},
"error"
:
{
"en"
:
"Error "
...
...
This diff is collapsed.
Click to expand it.
dictionaries/privacyidea.translation.json
+
4
−
4
View file @
662b0906
...
...
@@ -67,7 +67,7 @@
"cs"
:
"Není možné použít autentizaci WebAuthn, protože neodpovídá bezpečnostní kontext."
},
"alert_webauthn_unavailable"
:
{
"cs"
:
"Načtení WebAuthn
knihovny
se nezdařilo. Zkuste to znovu nebo použijte jin
ý token
."
"cs"
:
"Načtení WebAuthn se nezdařilo
, nejspíš ho Vaše zařízení nepodporuje
. Zkuste to znovu nebo použijte jin
ou metodu
."
},
"alert_webAuthnSignRequest_error"
:
{
"cs"
:
"Chyba při podepisování WebAuthnSignRequest:"
...
...
@@ -76,7 +76,7 @@
"cs"
:
"Není možné použít autentizaci U2F, protože neodpovídá bezpečnostní kontext."
},
"alert_u2f_unavailable"
:
{
"cs"
:
"Načtení U2F
knihovny
se nezdařilo. Zkuste to znovu nebo použijte jin
ý token
."
"cs"
:
"Načtení U2F se nezdařilo
, nejspíš ho Vaše zařízení nepodporuje
. Zkuste to znovu nebo použijte jin
ou metodu
."
},
"alert_U2FSignRequest_error"
:
{
"cs"
:
"Chyba při podepisování U2FSignRequest:"
...
...
@@ -86,8 +86,8 @@
"de"
:
"Nochmal versuchen"
,
"nl"
:
"Probeer opnieuw"
},
"
incorrect_otp
"
:
{
"cs"
:
"
Zadali jste nesprávné jednorázové heslo
. Zkuste to znovu nebo použijte jin
ý token
."
"
error_message
"
:
{
"cs"
:
"
Ověření nebylo úspěšné
. Zkuste to znovu nebo použijte jin
ou metodu
."
},
"error"
:
{
"cs"
:
"Chyba "
...
...
This diff is collapsed.
Click to expand it.
www/FormBuilder.php
+
3
−
8
View file @
662b0906
...
...
@@ -39,14 +39,9 @@ $tpl->data['errorCode'] = null;
$tpl
->
data
[
'errorMessage'
]
=
null
;
if
(
!
empty
(
$state
[
'privacyidea:privacyidea'
][
'errorCode'
])
||
!
empty
(
$state
[
'privacyidea:privacyidea'
][
'errorMessage'
]))
{
if
(
!
empty
(
$state
[
'privacyidea:privacyidea'
][
'errorCode'
]))
{
$tpl
->
data
[
'errorCode'
]
=
$state
[
'privacyidea:privacyidea'
][
'errorCode'
];
$state
[
'privacyidea:privacyidea'
][
'errorCode'
]
=
''
;
$tpl
->
data
[
'errorMessage'
]
=
$state
[
'privacyidea:privacyidea'
][
'errorMessage'
];
}
else
{
$tpl
->
data
[
'errorCode'
]
=
''
;
$tpl
->
data
[
'errorMessage'
]
=
$tpl
->
t
(
'{privacyidea:privacyidea:incorrect_otp}'
);
}
$tpl
->
data
[
'errorCode'
]
=
(
$state
[
'privacyidea:privacyidea'
][
'errorCode'
]
??
null
)
?:
''
;
$state
[
'privacyidea:privacyidea'
][
'errorCode'
]
=
''
$tpl
->
data
[
'errorMessage'
]
=
$tpl
->
t
(
'{privacyidea:privacyidea:error_message}'
);
$state
[
'privacyidea:privacyidea'
][
'errorMessage'
]
=
''
;
$stateId
=
State
::
saveState
(
$state
,
'privacyidea:privacyidea'
);
}
...
...
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