This documentation is for WSO2 Identity Server 5.3.0 . View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

This section explains how to resend the account recovery confirmation mail in the following account recovery scenarios:

  • User creation through ask password option
  • Notification-based password recovery
  • Admin-initiated password reset through an email link
  • Admin-initiated password reset via OTP
  • Self-registration

Follow the steps below to configure WSO2 Identity Server to resend account recovery confirmation emails:


Before you begin

Sign in to the WSO2 Identity Server Management Console.

  1. On the Main menu, click Manage > Email Template > Add. 
  2. Click Add Email Template
  3. To create an email template for account registration through password request
    1. Enter resendAskPassword  as the Template Type Display Name and click Add.

      A success message about the email template creation and the Add a New Email Template screen appears.  
    2. Enter the following values:
      1. Email Template TyperesendAskPassword
      2. Email Template LocaleEnglish (United States)
      3. Email Content Typetext/plain
      4. Email Template Subject: WSO2 - Resend Create Password for New Account
      5. Email Body:  

         Click to view
        Hi {{user.claim.givenname}},
        
        You have created an account with following user name
        
        User Name: {{user-name}}
        
        Please click the following link to unlock. If clicking the link doesn't seem to work, you can copy and paste the link into your browser's address window. https://localhost:9443/accountrecoveryendpoint/confirmrecovery.do?confirmation={{confirmation-code}}&userstoredomain={{userstore-domain}}&username={{url:user-name}}&tenantdomain={{tenant-domain}}
        
      6. Email Footer

        Best Regards,
        WSO2 Identity Server Team
        http://www.wso2.com

         

    You have successfully created an email template to resend a confirmation mail. Similarly, you can create other templates with the values given below.
  4. To create an email template for notification-based password recovery, enter the following values:
    1. Email Template TyperesendAdminForcedPasswordReset
    2. Email Template LocaleEnglish (United States)
    3. Email Content Typetext/plain
    4. Email Template SubjectWSO2 - Resend Admin Forced Password Reset
    5. Email Body

       Click to view
      Hi {{user.claim.givenname}},
      
      You have created an account with following user name
      
      User Name: {{user-name}}
      
      Please click the following link to unlock. If clicking the link doesn't seem to work, you can copy and paste the link into your browser's address window.
      https://localhost:9443/accountrecoveryendpoint/confirmregistration.do?confirmation={{confirmation-code}}&userstoredomain={{userstore-domain}}&username={{url:user-name}}&tenantdomain={{tenant-domain}}
              
    6. Email Footer

      Best Regards,
      WSO2 Identity Server Team
      http://www.wso2.com
  5. To create an email template for an admin-initiated password reset through an email link, enter the following values:
    1. Email Template TyperesendAdminForcedPasswordReset
    2. Email Template LocaleEnglish (United States)
    3. Email Content Typetext/plain
    4. Email Template SubjectWSO2 - Resend Admin Forced Password Reset
    5. Email Body

       Click to view
      Hi {{user.claim.givenname}},
      Please change your password for the account : {{user-name}}. Please click the link below to change the password.
      https://localhost:9443/accountrecoveryendpoint/confirmrecovery.do?confirmation={{confirmation-code}}&userstoredomain={{userstore-domain}}&;username={{url:user-name}}&tenantdomain={{tenant-domain}}
      If clicking the link doesn't seem to work, you can copy and paste the link into your browser's address window.
    6. Email Footer:

      Best Regards,
      WSO2 Identity Server Team
      http://www.wso2.com
  6. To create an email template for an admin-initiated password reset through an OTP, enter the following values:
    1. Email Template TyperesendAdminForcedPasswordResetWithOTP
    2. Email Template LocaleEnglish (United States)
    3. Email Content Typetext/plain
    4. Email Template SubjectWSO2 - Resend Admin Forced Password Reset
    5. Email Body

       Click to view
      Hi {{user.claim.givenname}},
       
      We received a request to change the password on the {{user-name}} account associated with this e-mail address.Please use below OTP as the password at next login and then reset your password.
       
      OTP : {{confirmation-code}}
    6. Email Footer

      Best Regards,
      WSO2 Identity Server Team
      http://www.wso2.com


For information on the REST API for resending confirmation code, see Resend-Code Using REST API.

  • No labels