Skip to content

Commit

Permalink
Merge pull request #74 from SwethaKrish4/mydevelop
Browse files Browse the repository at this point in the history
MOSIP-31356: captcha disappears when username or password invalid
  • Loading branch information
ckm007 authored Feb 2, 2024
2 parents b24f7f5 + 2376b00 commit d935918
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
Binary file modified keycloak-artemis/standalone/deployments/recaptcha-login.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions keycloak-artemis/theme/base/login/error.ftl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout displayMessage=false; section>
<div <#if locale?exists && locale.currentLanguageTag == "ara">dir="rtl"</#if>>
<#if section = "header">
${msg("errorTitle")}
<#elseif section = "form">
<div id="kc-error-message">
<p class="instruction">${message.summary?no_esc}</p>
<#if client?? && client.baseUrl?has_content>
<p><a id="backToApplication" href="${client.baseUrl}">${kcSanitize(msg("backToApplication"))?no_esc}</a></p>
</#if>
<p><a id="backToApplication" href="${url.loginUrl}">${kcSanitize(msg("tryAgain"))?no_esc}</a></p>
</div>
</#if>
</div>
</@layout.registrationLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ emailLinkIdp4=إذا كنت قد تحققت بالفعل من البريد ال
emailLinkIdp5=لاستكمال.

backToLogin=" العودة إلى تسجيل الدخول
tryAgain=" حاول ثانية

emailInstruction=أدخل اسم المستخدم أو عنوان البريد الإلكتروني الخاص بك وسنرسل لك تعليمات حول كيفية إنشاء كلمة مرور جديدة.

Expand Down Expand Up @@ -247,7 +248,7 @@ unexpectedErrorRetrievingTokenMessage=خطأ غير متوقع عند استرد
unexpectedErrorHandlingResponseMessage=خطأ غير متوقع عند التعامل مع الاستجابة من موفر الهوية
identityProviderAuthenticationFailedMessage=المصادقة فشلت. تعذرت المصادقة مع موفر الهوية
couldNotSendAuthenticationRequestMessage=تعذر إرسال طلب المصادقة إلى موفر الهوية
unexpectedErrorHandlingRequestMessage=فشل اختبار التحقق، ارجع وحاول مرة أخرى.
unexpectedErrorHandlingRequestMessage=كلمة التحقق غير صالحة، حاول مرة أخرى.
invalidAccessCodeMessage=رمز الوصول غير صالح
sessionNotActiveMessage=الجلسة غير نشطة
invalidCodeMessage=حدث خطأ ، يرجى تسجيل الدخول مرة أخرى من خلال التطبيق الخاص بك
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ emailLinkIdp4=If you already verified the email in different browser
emailLinkIdp5=to continue.

backToLogin=&laquo; Back to Login
tryAgain=&laquo; Try again

emailInstruction=Enter your username or email address and we will send you instructions on how to create a new password.

Expand Down Expand Up @@ -262,7 +263,7 @@ unexpectedErrorRetrievingTokenMessage=Unexpected error when retrieving token fro
unexpectedErrorHandlingResponseMessage=Unexpected error when handling response from identity provider.
identityProviderAuthenticationFailedMessage=Authentication failed. Could not authenticate with identity provider.
couldNotSendAuthenticationRequestMessage=Could not send authentication request to identity provider.
unexpectedErrorHandlingRequestMessage=Captcha failure, go back and try again..
unexpectedErrorHandlingRequestMessage=Captcha is invalid, try again.
invalidAccessCodeMessage=Invalid access code.
sessionNotActiveMessage=Session not active.
invalidCodeMessage=An error occurred, please login again through your application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ emailLinkIdp4=Si vous avez d\u00e9j\u00e0 v\u00e9rifi\u00e9 votre courriel dans
emailLinkIdp5=pour continuer.

backToLogin=&laquo; Retour \u00e0 la connexion
tryAgain=&laquo; Essayer à nouveau

emailInstruction=Entrez votre nom d''utilisateur ou votre courriel ; un courriel va vous \u00eatre envoy\u00e9 vous permettant de cr\u00e9er un nouveau mot de passe.

Expand Down Expand Up @@ -236,7 +237,7 @@ unexpectedErrorRetrievingTokenMessage=Erreur inattendue lors de la r\u00e9cup\u0
unexpectedErrorHandlingResponseMessage=Erreur inattendue lors du traitement de la r\u00e9ponse provenant du fournisseur d''identit\u00e9.
identityProviderAuthenticationFailedMessage=L''authentification a \u00e9chou\u00e9e. Impossible de s''authentifier avec le fournisseur d''identit\u00e9.
couldNotSendAuthenticationRequestMessage=Impossible d''envoyer la requ\u00eate d''authentification vers le fournisseur d''identit\u00e9.
unexpectedErrorHandlingRequestMessage=Échec du captcha, revenez en arrière et réessayez.
unexpectedErrorHandlingRequestMessage=Le captcha n'est pas valide, réessayez.
invalidAccessCodeMessage=Code d''acc\u00e8s invalide.
sessionNotActiveMessage=La session n''est pas active.
invalidCodeMessage=Une erreur est survenue, veuillez vous reconnecter \u00e0 votre application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ emailLinkIdp4=यदि आप पहले ही ईमेल को भिन
emailLinkIdp5=जारी रखने के लिए।

backToLogin=&laquo; लॉगिन पर वापस जाएं
tryAgain=&laquo; पुनः प्रयास करें

emailInstruction=अपना उपयोगकर्ता नाम या ईमेल पता दर्ज करें और हम आपको एक नया पासवर्ड बनाने के निर्देश भेजेंगे।

Expand Down Expand Up @@ -262,7 +263,7 @@ unexpectedErrorRetrievingTokenMessage=पहचान प्रदाता स
unexpectedErrorHandlingResponseMessage=पहचान प्रदाता से प्रतिक्रिया को संभालते समय अनपेक्षित त्रुटि।
identityProviderAuthenticationFailedMessage=प्रमाणीकरण विफल होना। पहचान प्रदाता के साथ प्रमाणित नहीं किया जा सका।
couldNotSendAuthenticationRequestMessage=पहचान प्रदाता को प्रमाणीकरण अनुरोध नहीं भेजा जा सका।
unexpectedErrorHandlingRequestMessage=कैप्चा विफलता, वापस जाएं और पुनः प्रयास करें
unexpectedErrorHandlingRequestMessage=कैप्चा अमान्य है, पुनः प्रयास करें.
invalidAccessCodeMessage=अमान्य एक्सेस कोड।
sessionNotActiveMessage=सत्र सक्रिय नहीं है।
invalidCodeMessage=एक त्रुटि हुई, कृपया अपने आवेदन के माध्यम से फिर से लॉगिन करें।
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ emailLinkIdp4=ನೀವು ಈಗಾಗಲೇ ಬೇರೆ ಬ್ರೌಸರ್
emailLinkIdp5=ಮುಂದುವರಿಸಲು.

backToLogin=& laquo; ಲಾಗಿನ್‌ಗೆ ಹಿಂತಿರುಗಿ
tryAgain=&laquo; ಮತ್ತೆ ಪ್ರಯತ್ನಿಸು

emailInstruction=ನಿಮ್ಮ ಬಳಕೆದಾರಹೆಸರು ಅಥವಾ ಇಮೇಲ್ ವಿಳಾಸವನ್ನು ನಮೂದಿಸಿ ಮತ್ತು ಹೊಸ ಪಾಸ್‌ವರ್ಡ್ ಅನ್ನು ಹೇಗೆ ರಚಿಸುವುದು ಎಂಬುದರ ಕುರಿತು ನಾವು ನಿಮಗೆ ಸೂಚನೆಗಳನ್ನು ಕಳುಹಿಸುತ್ತೇವೆ.

Expand Down Expand Up @@ -263,7 +264,7 @@ unexpectedErrorRetrievingTokenMessage=ಗುರುತಿನ ಪೂರೈಕೆ
unexpectedErrorHandlingResponseMessage=ಗುರುತಿನ ಪೂರೈಕೆದಾರರಿಂದ ಪ್ರತಿಕ್ರಿಯೆಯನ್ನು ನಿರ್ವಹಿಸುವಾಗ ಅನಿರೀಕ್ಷಿತ ದೋಷ.
identityProviderAuthenticationFailedMessage=ದೃ hentic ೀಕರಣ ವಿಫಲವಾಗಿದೆ. ಗುರುತಿನ ಪೂರೈಕೆದಾರರೊಂದಿಗೆ ದೃ ate ೀಕರಿಸಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ.
couldNotSendAuthenticationRequestMessage= ಗುರುತಿನ ಪೂರೈಕೆದಾರರಿಗೆ ದೃ request ೀಕರಣ ವಿನಂತಿಯನ್ನು ಕಳುಹಿಸಲಾಗಲಿಲ್ಲ.
unexpectedErrorHandlingRequestMessage=ಕ್ಯಾಪ್ಚಾ ವೈಫಲ್ಯ, ಹಿಂತಿರುಗಿ ಮತ್ತು ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.
unexpectedErrorHandlingRequestMessage=ಕ್ಯಾಪ್ಚಾ ಅಮಾನ್ಯವಾಗಿದೆ, ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.
invalidAccessCodeMessage=ಅಮಾನ್ಯ ಪ್ರವೇಶ ಕೋಡ್.
sessionNotActiveMessage=ಸೆಷನ್ ಸಕ್ರಿಯವಾಗಿಲ್ಲ.
invalidCodeMessage=ದೋಷ ಸಂಭವಿಸಿದೆ, ದಯವಿಟ್ಟು ನಿಮ್ಮ ಅಪ್ಲಿಕೇಶನ್ ಮೂಲಕ ಮತ್ತೆ ಲಾಗಿನ್ ಮಾಡಿ.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ emailLinkIdp4=நீங்கள் ஏற்கனவே வெவ்வேற
emailLinkIdp5=தொடர.

backToLogin=& laquo; உள்நுழைவுக்குத் திரும்பு
tryAgain=&laquo; மீண்டும் முயற்சி செய்

emailInstruction=உங்கள் பயனர்பெயர் அல்லது மின்னஞ்சல் முகவரியை உள்ளிடுக, புதிய கடவுச்சொல்லை எவ்வாறு உருவாக்குவது என்பது குறித்த வழிமுறைகளை நாங்கள் உங்களுக்கு அனுப்புவோம்.

Expand Down Expand Up @@ -263,7 +264,7 @@ unexpectedErrorRetrievingTokenMessage=அடையாள வழங்குந
unexpectedErrorHandlingResponseMessage=அடையாள வழங்குநரிடமிருந்து பதிலைக் கையாளும் போது எதிர்பாராத பிழை.
identityProviderAuthenticationFailedMessage=அங்கீகாரம் தோல்வியுற்றது. அடையாள வழங்குநருடன் அங்கீகரிக்க முடியவில்லை.
couldNotSendAuthenticationRequestMessage= அடையாள வழங்குநருக்கு அங்கீகார கோரிக்கையை அனுப்ப முடியவில்லை.
unexpectedErrorHandlingRequestMessage=கேப்ட்சா தோல்வி, திரும்பிச் சென்று மீண்டும் முயற்சிக்கவும்.
unexpectedErrorHandlingRequestMessage=கேப்ட்சா தவறானது, மீண்டும் முயற்சிக்கவும்.
invalidAccessCodeMessage=தவறான அணுகல் குறியீடு.
sessionNotActiveMessage=அமர்வு செயலில் இல்லை.
invalidCodeMessage=பிழை ஏற்பட்டது, தயவுசெய்து உங்கள் விண்ணப்பத்தின் மூலம் மீண்டும் உள்நுழைக.
Expand Down
2 changes: 1 addition & 1 deletion keycloak-artemis/theme/base/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<#if recaptchaRequired??>
<div class="form-group">
<div class="${properties.kcInputWrapperClass!}">
<div class="g-recaptcha" data-theme="light" data-sitekey="${recaptchaSiteKey}" style="padding-left:15px;"></div>
<div class="g-recaptcha" data-theme="light" data-sitekey="${recaptchaSiteKey}" style="padding-left:30px;"></div>
</div>
</div>
</#if>
Expand Down
4 changes: 2 additions & 2 deletions keycloak-artemis/theme/mosip/login/resources/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ div.kc-logo-text span {
display: none;
}
.g-recaptcha {
transform:scale(1.27);
transform:scale(1.15);
transform-origin:left;
height: 105px;
direction: ltr;
padding-top: 10px;
padding: 15px;
}
div.form-group.login-pf-settings{
display: block;
Expand Down

0 comments on commit d935918

Please sign in to comment.