%
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see
<%= t("You are required to set up Multi-Factor Authentication.") %>
<% end %> <% otp_via_sms_message = otp_via_sms_in_us_region? ? mt(<<~MESSAGE) : "" The device can be a code generator or a mobile phone that receives text messages. **Using an authenticator app is strongly recommended for enhanced security.** MESSAGE %> <%= mt(<<~BODY, otp_via_sms_message:) Multi-Factor Authentication (MFA) enhances security by requiring a physical device and your Canvas login password. %{otp_via_sms_message} Configure MFA by scanning the QR code with a Time-based One-Time Password (TOTP) app on iPhone or Android (e.g., Google Authenticator, Microsoft Authenticator, Authy). After setup, print backup codes from your profile page if your primary MFA device is unavailable. BODY %>">
<%= t("Secret Key:") %>
<%= session[:pending_otp_secret_key] %>
<%= t("Only US mobile numbers are supported.") %>
<% ccs = @current_user.communication_channels.sms.unretired.map { |cc| [cc.path, cc.id] } %> <% unless ccs.empty? %> <% ccs << ["<< #{t("a new mobile number")} >>", "{{id}}"] %> <%= form_for :otp_login, :url => send_otp_via_sms_path, :html => {:id => "select_phone_form", :class => "ic-Form-group ic-Form-group--horizontal"} do |f| %><%= t("Please enter the verification code sent to your mobile phone number.") %>
<%= t("Please check your email if your SMS code does not arrive soon.") %>
<%= t("Please enter the verification code shown by your token.") %>