message: 'twofa_mail_body_security_notification_paired',
# (mis-)use field here as value wouldn't get localized
field: "twofa__#{scheme_name}__name",
- url: { controller: 'my', action: 'account' }
+ url: {controller: 'my', action: 'account'}
}
).deliver
end
{
title: :label_my_account,
message: 'twofa_mail_body_security_notification_unpaired',
- url: { controller: 'my', action: 'account' }
+ url: {controller: 'my', action: 'account'}
}
).deliver
end
originator: @user,
title: :label_my_account,
message: 'twofa_mail_body_backup_code_used',
- url: { controller: 'my', action: 'account' }
+ url: {controller: 'my', action: 'account'}
}
).deliver
return true
{
title: :label_my_account,
message: 'twofa_mail_body_backup_codes_generated',
- url: { controller: 'my', action: 'account' }
+ url: {controller: 'my', action: 'account'}
}
).deliver
tokens