Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username recovery sms support #7005

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c36f03c
Add new web page.
Malith-19 Oct 2, 2024
6425c85
Add email or mobile field to username recovery page.
Malith-19 Oct 2, 2024
1884829
Add reources properties.
Malith-19 Oct 2, 2024
16126b1
Update the resource with new message content.
Malith-19 Oct 11, 2024
ce4a098
Integrate the notify with selected channel.
Malith-19 Oct 11, 2024
7ac3ed1
Update the resources for the DE.
Malith-19 Oct 14, 2024
765d8d1
remove the empty line.
Malith-19 Oct 14, 2024
053d70e
Improve the stylings.
Malith-19 Oct 14, 2024
d06f193
add config getting calls.
Malith-19 Oct 16, 2024
798540b
remove the tenantDomain get call.
Malith-19 Oct 18, 2024
601dd4e
Add email sms enable configs check.
Malith-19 Oct 18, 2024
058f5ba
🦋 Add changeset
Malith-19 Oct 18, 2024
37592ee
Update the comment.
Malith-19 Oct 18, 2024
5d35580
Update .changeset/six-singers-sing.md
Malith-19 Oct 21, 2024
7e9237b
Address the comments.
Malith-19 Oct 21, 2024
ca8b44b
Rename the form name in channel selection.
Malith-19 Oct 22, 2024
016fc3f
Update the js scripts.
Malith-19 Oct 22, 2024
f356f29
Update request get parameter with encoding.
Malith-19 Oct 22, 2024
851f59a
Update the success message for the username recovery.
Malith-19 Oct 22, 2024
6f03c72
Update the comment.
Malith-19 Oct 29, 2024
b0d1008
Remove the no valid user error catch block.
Malith-19 Oct 29, 2024
d836373
Update the comments.
Malith-19 Oct 29, 2024
bced779
Remove the unwanted boolean nochannelFound.
Malith-19 Oct 29, 2024
4e0278e
Refomat the code.
Malith-19 Oct 29, 2024
d739dbf
Format the code.
Malith-19 Oct 29, 2024
ccff022
Fix the formattings.
Malith-19 Oct 30, 2024
f75fc26
Add a placeholder for the contact input.
Malith-19 Nov 1, 2024
1602b3f
Encode the values in the input field.
Malith-19 Nov 1, 2024
a92062d
Read the regex from the claims for the validation.
Malith-19 Nov 2, 2024
150c0a6
Update the i18n string to support branding.
Malith-19 Nov 7, 2024
222588d
Imrove the formattings.
Malith-19 Nov 7, 2024
e4437d1
Remove the unused i18n string.
Malith-19 Nov 8, 2024
3178770
Add the branding support.
Malith-19 Nov 8, 2024
b400ad6
Merge branch 'master' into username-recovery-sms-support
Malith-19 Nov 8, 2024
36876a7
Update the branding screennames in username recovery pages.
Malith-19 Nov 8, 2024
825c12b
Update the changeset.
Malith-19 Nov 8, 2024
72270d6
Fix the indentation.
Malith-19 Nov 8, 2024
9930f13
Update the indentations.
Malith-19 Nov 8, 2024
594affc
Address the formatting suggestions.
Malith-19 Nov 8, 2024
7faeaa3
Add the page filetering in page drop down in branding.
Malith-19 Nov 12, 2024
d71e795
Reformat the code.
Malith-19 Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/six-singers-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": minor
---

Add multi-channel support to the username recovery flow.
Malith-19 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,47 @@ password.reset.success.action=Back to application
email.link.expiry.message=This link has expired.
# <!-- End of Email Link Expiry Translations -->

# <!-- Start of Username Recovery Claim Translations -->
# EDITABLE=true,SCREEN="username-recovery-claim",MULTI_LINE=false
username.recovery.heading=Recover Username
# EDITABLE=true,SCREEN="username-recovery-claim",MULTI_LINE=false
username.recovery.body=Enter below details to recover your username.
# EDITABLE=true,SCREEN="username-recovery-claim",MULTI_LINE=false
contact=Email or mobile
# EDITABLE=true,SCREEN="username-recovery-claim",MULTI_LINE=false
username.recovery.next.button=Next
# EDITABLE=true,SCREEN="username-recovery-claim",MULTI_LINE=false
username.recovery.cancel.button=Cancel
# <!-- End of Username Recovery Claim Translations -->

# <!-- Start of Username Recovery Channel Selection Translations -->
# EDITABLE=true,SCREEN="username-recovery-channel-selection",MULTI_LINE=false
username.recovery.channel.selection.heading=Recover Username
# EDITABLE=true,SCREEN="username-recovery-channel-selection",MULTI_LINE=false
username.recovery.channel.selection.body=Select a recovery option
# EDITABLE=true,SCREEN="username-recovery-channel-selection",MULTI_LINE=false
send.username.via.email=Send Username via Email
# EDITABLE=true,SCREEN="username-recovery-channel-selection",MULTI_LINE=false
send.username.via.sms=Send Username via SMS
# EDITABLE=true,SCREEN="username-recovery-channel-selection",MULTI_LINE=false
username.recovery.channel.selection.next.button=Next
# EDITABLE=true,SCREEN="username-recovery-channel-selection",MULTI_LINE=false
username.recovery.channel.selection.cancel.button=Cancel
# <!-- End of Username Recovery Channel Selection Translations -->

# <!-- Start of Username Recovery Success Translations -->
# EDITABLE=true,SCREEN="username-recovery-success",MULTI_LINE=false
username.recovery.email.success.header=Check Your Email
# EDITABLE=true,SCREEN="username-recovery-success",MULTI_LINE=false
username.recovery.sms.success.header=Check Your Mobile
# EDITABLE=true,SCREEN="username-recovery-success",MULTI_LINE=true
username.recovery.email.success.body=Username recovery details have been sent to the email provided. If the email is not received, try again using different information.
# EDITABLE=true,SCREEN="username-recovery-success",MULTI_LINE=true
username.recovery.sms.success.body=Username recovery details have been sent to the mobile number provided. If the SMS is not received, try again using different information.
# EDITABLE=true,SCREEN="username-recovery-success",MULTI_LINE=false
username.recovery.success.action=Back to application
# <!-- End of Username Recovery Success Translations -->

Wso2.identity.server=WSO2 Identity Server
All.rights.reserved=All Rights Reserved.
Inc=Inc
Expand All @@ -100,6 +141,7 @@ Submit=Submit
Cancel=Cancel
Recover.username=Recover Username
Enter.detail.to.recover.uname=Enter below details to recover your username
Select.the.recovery.option=Select the recovery option
Malith-19 marked this conversation as resolved.
Show resolved Hide resolved
First.name=First Name
Last.name=Last Name
Email=Email
Expand Down Expand Up @@ -130,12 +172,14 @@ Insufficient.info.to.find.user=Provided information is insufficient to identify
No.recovery.supported.claims.found=No recovery supported claims found
Unknown.password.recovery.option=Unknown Password Recovery Option
Username.cannot.be.empty=Username cannot be empty.
Contact.cannot.be.empty=Contact cannot be empty.
Invalid.contact=Invalid contact
Invalid.username.recovery.stage=Invalid username recovery stage.
Account.confirmation.sent.to.your.email=Account confirmation has been sent to your email.
Create.an.account=Create An Account
Enter.required.fields.to.complete.registration=Enter required fields to complete registration of-
Next=Next
Already.have.an.account=Already have an account?
Username.recovery.information.sent.to.your.email=Username recovery information has been sent to your email. Try again with different attributes if the email is not received.
Registered.user.not.found.in.session=Registered user not found in session.
No.security.questions.found.to.recover.password.contact.system.administrator=No Security Questions Found to recover password. Please contact your system Administrator
No.recovery.options.found=No Recovery Option Found to recover password. Please contact your system Administrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@ password.reset.success.action=Zurück zur Registrierung
email.link.expiry.message=Dieser Link ist abgelaufen.
# <!-- End of Email Link Expiry Translations -->

# <!-- Start of Username Recovery Claim Translations -->
username.recovery.heading=Benutzernamen wiederherstellen
username.recovery.body=Geben Sie die folgenden Details ein, um Ihren Benutzernamen wiederherzustellen.
contact=E-Mail oder Handy
username.recovery.next.button=Nächste
username.recovery.cancel.button=Stornieren
# <!-- End of Username Recovery Claim Translations -->

# <!-- Start of Username Recovery Channel Selection Translations -->
username.recovery.channel.selection.heading=Benutzernamen wiederherstellen
username.recovery.channel.selection.body=Wählen Sie eine Wiederherstellungsoption
send.username.via.email=Benutzernamen per E-Mail senden
send.username.via.sms=Benutzernamen per SMS senden
username.recovery.channel.selection.next.button=Nächste
username.recovery.channel.selection.cancel.button=Stornieren
# <!-- End of Username Recovery Channel Selection Translations -->

# <!-- Start of Username Recovery Success Translations -->
username.recovery.email.success.header=Überprüfen Sie Ihre E-Mail
username.recovery.sms.success.header=Überprüfen Sie Ihr Mobiltelefon
username.recovery.email.success.body=Details zur Wiederherstellung des Benutzernamens wurden an die angegebene E-Mail-Adresse gesendet. Wenn Sie die E-Mail nicht erhalten, versuchen Sie es erneut mit anderen Informationen.
username.recovery.sms.success.body=Details zur Wiederherstellung des Benutzernamens wurden an die angegebene Mobiltelefonnummer gesendet. Wenn die SMS nicht empfangen wird, versuchen Sie es erneut mit anderen Informationen.
username.recovery.success.action=Zurück zur Bewerbung
# <!-- End of Username Recovery Success Translations -->

Wso2.identity.server=WSO2 Identity Server
All.rights.reserved=Alle Rechte vorbehalten.
Inc=Inc.
Expand All @@ -77,6 +102,7 @@ Submit=send
Cancel=abbrechen
Recover.username=Benutzername wiederherstellen
Enter.detail.to.recover.uname=Geben Sie unten Ihre Details ein, um Ihren Benutzernamen wiederherzustellen
Select.the.recovery.option=Wählen Sie die Wiederherstellungsoption
First.name=Vorname
Last.name=Familienname
Email=E-Mail
Expand Down Expand Up @@ -107,12 +133,14 @@ Insufficient.info.to.find.user=Bereitgestellte Informationen sind nicht ausreic
No.recovery.supported.claims.found=Keine von der Wiederherstellung unterstützten Ansprüche gefunden
Unknown.password.recovery.option=Option zur Wiederherstellung unbekannter Passwörter
Username.cannot.be.empty=Der Benutzername darf nicht leer sein.
Contact.cannot.be.empty=Der Kontakt darf nicht leer sein.
Invalid.contact=Ungültiger Kontakt
Invalid.username.recovery.stage=Ugyldigt gendannelsestrin for brugernavn.
Account.confirmation.sent.to.your.email=Die Kontobestätigung wurde an Ihre E -Mail gesendet.
Create.an.account=Ein Konto erstellen
Enter.required.fields.to.complete.registration=Füllen Sie die erforderlichen Felder aus, um die Registrierung abzuschliessen
Next=Nächste
Already.have.an.account=Haben Sie bereits ein Konto?
Username.recovery.information.sent.to.your.email=Informationen zur Wiederherstellung von Benutzername wurden an Ihre E-Mail gesendet. Versuchen Sie es erneut mit verschiedenen Attributen, wenn die E-Mail nicht empfangen wird.
Registered.user.not.found.in.session=Registrierter Benutzer wurde in Sitzung nicht gefunden.
No.security.questions.found.to.recover.password.contact.system.administrator=Keine Sicherheitsfragen zur Wiederherstellung des Passworts wurde gefunden. Bitte wenden Sie sich an Ihren Systemadministrator
No.recovery.options.found=Keine Option zur Wiederherstellung des Passworts wurde gefunden. Bitte wenden Sie sich an Ihren Systemadministrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@ password.reset.success.action=Volver a la aplicación
email.link.expiry.message=Este enlace ha expirado.
# <!-- End of Email Link Expiry Translations -->

# <!-- Start of Username Recovery Claim Translations -->
username.recovery.heading=Recuperar nombre de usuario
username.recovery.body=Ingrese los detalles a continuación para recuperar su nombre de usuario.
contact=Correo electrónico o móvil
username.recovery.next.button=Próxima
username.recovery.cancel.button=Cancelar
# <!-- End of Username Recovery Claim Translations -->

# <!-- Start of Username Recovery Channel Selection Translations -->
username.recovery.channel.selection.heading=Recuperar nombre de usuario
username.recovery.channel.selection.body=Seleccione una opción de recuperación
send.username.via.email=Enviar nombre de usuario por correo electrónico
send.username.via.sms=Enviar nombre de usuario por SMS
username.recovery.channel.selection.next.button=Próxima
username.recovery.channel.selection.cancel.button=Cancelar
# <!-- End of Username Recovery Channel Selection Translations -->

# <!-- Start of Username Recovery Success Translations -->
username.recovery.email.success.header=Revisa tu correo electrónico
username.recovery.sms.success.header=Revisa tu móvil
username.recovery.email.success.body=Los detalles de recuperación del nombre de usuario se enviaron al correo electrónico proporcionado. Si no se recibe el correo electrónico, inténtelo nuevamente usando información diferente.
username.recovery.sms.success.body=Los detalles de recuperación del nombre de usuario se enviaron al número de teléfono móvil proporcionado. Si no se recibe el SMS, inténtelo nuevamente usando información diferente.
username.recovery.success.action=Volver a la aplicación
# <!-- End of Username Recovery Success Translations -->

Wso2.identity.server=WSO2 Identity Server
All.rights.reserved=Todos los derechos reservados.
Inc=Inc
Expand All @@ -77,6 +102,7 @@ Submit=Enviar
Cancel=Cancelar
Recover.username=Recuperar el nombre de usuario
Enter.detail.to.recover.uname=Ingrese a continuación los detalles para recuperar su nombre de usuario
Select.the.recovery.option=Seleccione la opción de recuperación
First.name=Nombre
Last.name=Apellido
Email=Correo electrónico
Expand Down Expand Up @@ -107,12 +133,14 @@ Insufficient.info.to.find.user=La información proporcionada es insuficiente par
No.recovery.supported.claims.found=No se encontraron reclamos respaldados por recuperación
Unknown.password.recovery.option=Opción de recuperación de contraseña desconocida
Username.cannot.be.empty=El nombre de usuario no puede estar vacío.
Contact.cannot.be.empty=El contacto no puede estar vacío
Invalid.contact=Contacto inválido
Invalid.username.recovery.stage=Etapa de recuperación de nombre de usuario no válida.
Account.confirmation.sent.to.your.email=La confirmación de la cuenta se ha enviado a su correo electrónico.
Create.an.account=Crea una cuenta
Enter.required.fields.to.complete.registration=Ingrese los campos requeridos para completar el registro de
Next=Siguiente
Already.have.an.account=¿Ya tienes una cuenta?
Username.recovery.information.sent.to.your.email=La información de recuperación del nombre de usuario se ha enviado a su correo electrónico. Vuelva a intentarlo con diferentes atributos si no se recibe el correo electrónico.
Registered.user.not.found.in.session=Usuario registrado no encontrado en la sesión.
No.security.questions.found.to.recover.password.contact.system.administrator=No se encuentran preguntas de seguridad para recuperar la contraseña. Por favor, póngase en contacto con el administrador del sistema
No.recovery.options.found=No se encuentra ninguna opción de recuperación para recuperar la contraseña. Por favor, póngase en contacto con el administrador del sistema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@ password.reset.success.action=Retour à la candidature
email.link.expiry.message=Ce lien a expiré
# <!-- End of Email Link Expiry Translations -->

# <!-- Start of Username Recovery Claim Translations -->
username.recovery.heading=Récupérer le nom d'utilisateur
username.recovery.body=Entrez les détails ci-dessous pour récupérer votre nom d'utilisateur.
contact=E-mail ou mobile
username.recovery.next.button=Suivante
username.recovery.cancel.button=Annuler
# <!-- End of Username Recovery Claim Translations -->

# <!-- Start of Username Recovery Channel Selection Translations -->
username.recovery.channel.selection.heading=Récupérer le nom d'utilisateur
username.recovery.channel.selection.body=Sélectionnez une option de récupération
send.username.via.email=Envoyer le nom d'utilisateur par e-mail
send.username.via.sms=Envoyer le nom d'utilisateur par SMS
username.recovery.channel.selection.next.button=Suivante
username.recovery.channel.selection.cancel.button=Annuler
# <!-- End of Username Recovery Channel Selection Translations -->

# <!-- Start of Username Recovery Success Translations -->
username.recovery.email.success.header=Vérifiez votre courrier électronique
username.recovery.sms.success.header=Vérifiez votre mobile
username.recovery.email.success.body=Les détails de récupération du nom d'utilisateur ont été envoyés à l'adresse e-mail fournie. Si l'e-mail n'est pas reçu, réessayez en utilisant des informations différentes.
username.recovery.sms.success.body=Les détails de récupération du nom d'utilisateur ont été envoyés au numéro de mobile fourni. Si le SMS n’est pas reçu, réessayez en utilisant des informations différentes.
username.recovery.success.action=Retour à la candidature
# <!-- End of Username Recovery Success Translations -->

Wso2.identity.server=WSO2 Identity Server
All.rights.reserved=Tous droits réservés.
Inc=Inc
Expand All @@ -74,6 +99,7 @@ Submit=Soumettre
Cancel=Annuler
Recover.username=Récupérer votre nom d'utilisateur
Enter.detail.to.recover.uname=Entrer les détails ci dessous pour récupérer votre nom d'utilisateur
Select.the.recovery.option=Sélectionnez l'option de récupération
First.name=Prénom
Last.name=Nom
Email=Email
Expand Down Expand Up @@ -103,12 +129,14 @@ No.valid.user.found=Aucun utilisateur valide trouvé
No.recovery.supported.claims.found= Pas d'informations de récupération trouvées
Unknown.password.recovery.option=Option de récupération du mot de passe inconnue
Username.cannot.be.empty=Le nom d utilisateur ne peut pas être vide.
Contact.cannot.be.empty=Le contact ne peut pas être vide
Invalid.contact=Contact invalide
Invalid.username.recovery.stage=Étape de récupération du nom d'utilisateur non valide.
Account.confirmation.sent.to.your.email=Confirmation du compte envoyée sur votre adresse e-mail.
Create.an.account=Créez un compte
Enter.required.fields.to.complete.registration=Saisir les champs requis pour terminer l'enregistrement de
Next=Suivant
Already.have.an.account=Avez-vous déjà un compte?
Username.recovery.information.sent.to.your.email=Les informations de récupération de le nom d'utilisateur ont été envoyées à votre adresse mail. Essayer à nouveau avec des attributs différents si le mail n'est pas reçu.
Registered.user.not.found.in.session=Utilisateur enregistré introuvable dans la session.
No.security.questions.found.to.recover.password.contact.system.administrator=Pas de questions de sécurité trouvées pour récupérer le mot de passe. Veuillez vous adresser à votre administrateur système
Username.is.missing=Nom d utilisateur manquant.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@ password.reset.success.action=アプリケーションに戻る
email.link.expiry.message=このリンクは有効期限が切れています。
# <!-- End of Email Link Expiry Translations -->

# <!-- Start of Username Recovery Claim Translations -->
username.recovery.heading=ユーザー名を回復する
username.recovery.body=ユーザー名を回復するには、以下の詳細を入力してください。
contact=電子メールまたは携帯電話
username.recovery.next.button=次
username.recovery.cancel.button=キャンセル
# <!-- End of Username Recovery Claim Translations -->

# <!-- Start of Username Recovery Channel Selection Translations -->
username.recovery.channel.selection.heading=ユーザー名を回復する
username.recovery.channel.selection.body=回復オプションを選択してください
send.username.via.email=電子メールでユーザー名を送信
send.username.via.sms=SMS 経由でユーザー名を送信
username.recovery.channel.selection.next.button=次
username.recovery.channel.selection.cancel.button=キャンセル
# <!-- End of Username Recovery Channel Selection Translations -->

# <!-- Start of Username Recovery Success Translations -->
username.recovery.email.success.header=メールを確認してください
username.recovery.sms.success.header=携帯電話を確認してください
username.recovery.email.success.body=ユーザー名の回復の詳細が、指定された電子メールに送信されました。メールが届かない場合は、別の情報を使用して再度お試しください。
username.recovery.sms.success.body=ユーザー名の回復の詳細が、指定された携帯電話番号に送信されました。 SMS が受信されない場合は、別の情報を使用して再試行してください。
username.recovery.success.action=アプリケーションに戻る
# <!-- End of Username Recovery Success Translations -->

Wso2.identity.server=WSO2 アイデンティティサーバ
All.rights.reserved=無断転載を禁じます。
Inc=Inc
Expand All @@ -75,6 +100,7 @@ Submit=送信
Cancel=キャンセル
Recover.username=ユーザー名を復元
Enter.detail.to.recover.uname=ユーザー名を復元するには、以下の詳細を入力してください。
Select.the.recovery.option=回復オプションを選択します
First.name=名
Last.name=姓
Email=メール
Expand Down Expand Up @@ -105,12 +131,14 @@ Insufficient.info.to.find.user=提供された情報はユーザーを特定す
No.recovery.supported.claims.found=復元サポート対象クレームが見つかりません
Unknown.password.recovery.option=不明パスワード復旧オプション
Username.cannot.be.empty=ユーザー名は入力必須です。
Contact.cannot.be.empty=連絡先を空にすることはできません
Invalid.contact=無効な連絡先
Invalid.username.recovery.stage=ユーザー名の回復ステージが無効です。
Account.confirmation.sent.to.your.email=アカウント確認メールが送信されました。
Create.an.account=アカウントの作成
Enter.required.fields.to.complete.registration=必須項目を入力して-の登録を完了してください
Next=次
Already.have.an.account=すでにアカウントをお持ちですか?
Username.recovery.information.sent.to.your.email=ユーザー名の再設定情報がメールアドレスに送信されました。メールが届かない場合は、別の属性でもう一度試してください。
Registered.user.not.found.in.session=セッションに登録ユーザーが見つかりません。
No.security.questions.found.to.recover.password.contact.system.administrator=パスワードを復旧するためのセキュリティの質問が見つかりません。システム管理者にお問い合わせください
No.recovery.options.found=パスワードを復旧するための回復オプションが見つかりません。システム管理者にお問い合わせください
Expand Down
Loading
Loading