Skip to content

Email templates

The module sends two emails. Each email has a default template file. You can make a custom template in the admin.

Magento sends this email instead of the password reset link, when an SSO-managed user asks for a new password. The email tells the user to sign in through SSO, and gives the admin login URL.

Item Value
Template ID admin_visus_sso_forgot_email_template
File view/adminhtml/email/sso_password_notice.html
Setting SSO Forgot Password Email Template
Variable Description
{{var username}} The name of the account holder.
{{var login_url}} The admin login URL.
{{var store.frontend_name}} The name of the store.

The visus_admin_sso_notify_sp_key_expiry cron job sends this email before the service provider certificate expires, and at the expiry. Refer to Expiry warnings.

Item Value
Template ID admin_visus_sso_sp_key_expiry_email_template
File view/adminhtml/email/sp_key_expiry_notice.html
Setting Service Provider Certificate Expiry Email Template
Variable Description
{{var title}} The title of the notice. It is also the subject.
{{var description}} The description of the notice.
{{var key_id}} The ID of the service provider key.
{{var expires_at}} The expiry time of the certificate.
{{var days_left}} The number of days until the certificate expires.
{{var keys_url}} The admin URL of the service provider keys.
{{var store.frontend_name}} The name of the store.
  1. Go to Marketing > Communications > Email Templates.

  2. Click Add New Template.

  3. In Template, select SSO Forgot Admin Password or SSO Service Provider Certificate Expiry.

  4. Click Load Template.

  5. Enter a Template Name, and change the content.

  6. Click Save Template.

  7. Go to Stores > Configuration > Advanced > Admin > Visus Single Sign-On.

  8. In the setting of the email, select your new template.

  9. Click Save Config.