explorak5_login_prueba 6.0.6 → 6.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a688b28bdb8ddc5ef2a361ac5d3ae4303ab8a262279875b2e4dd07fa476458d8
4
- data.tar.gz: e7a3c0981ffbd145c44b0b124bf360e037ce1714fa48e2e105477413408b7dfa
3
+ metadata.gz: 498f0b69959f6e6b70583b0db59d1773af3d91621c08931b977b0f77f8ba4872
4
+ data.tar.gz: 6087cf6c86428db2e637c1c95621199d42a2a7b11839be3ccd1fc76f522b0e9c
5
5
  SHA512:
6
- metadata.gz: dbfa35f7e98b3f39edbff21af23b00c200575547d87afecc32996646dd5a81fed6465f54d0e120bd30131d2dc857e3ccd32afe4b8bfeca76ef57e54e3b4c75aa
7
- data.tar.gz: 951d2e8727db18c96933b12b3ab84315555a39961a05908cedf456567bcfc3deb34d0f4cf4a4e799d96054e9faacd926ea4a9ff4e51937e39fd722d6da7e1499
6
+ metadata.gz: 00ed54165d8c778cc50581527c9bec35264b032905112025d7629c9de66a5b1c660473ef632f1caf5b7aab27d85540a960c94b3baf174646db474e129bf5bc6f
7
+ data.tar.gz: 01f0d03005596a22166ae3d4d19ba9bafc6266d29ca330da0a05ac3ac888ef0bcc6a887af9a0a0c98e97701a9a44cf0961670c02c1ca7e91b46ac62da8274667
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Explorak5LoginPrueba
4
- VERSION = "6.0.6"
4
+ VERSION = "6.0.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explorak5_login_prueba
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.6
4
+ version: 6.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ibarra
@@ -19,19 +19,7 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - lib/explorak5_login_prueba/app/views/login/canvas/_forgot_password_link.html.erb
23
- - lib/explorak5_login_prueba/app/views/login/canvas/_instructure_logo.svg
24
- - lib/explorak5_login_prueba/app/views/login/canvas/_login_banner.html.erb
25
- - lib/explorak5_login_prueba/app/views/login/canvas/_login_content.html.erb
26
- - lib/explorak5_login_prueba/app/views/login/canvas/_sso_buttons.html.erb
27
- - lib/explorak5_login_prueba/app/views/login/canvas/mobile_login.html.erb
28
- - lib/explorak5_login_prueba/app/views/login/canvas/new.html.erb
29
- - lib/explorak5_login_prueba/app/views/login/email_verify/show.html.erb
30
- - lib/explorak5_login_prueba/app/views/login/logout_confirm.html.erb
31
- - lib/explorak5_login_prueba/app/views/login/logout_landing.html.erb
32
- - lib/explorak5_login_prueba/app/views/login/new.html.erb
33
- - lib/explorak5_login_prueba/app/views/login/otp/new.html.erb
34
- - lib/explorak5_login_prueba/app/views/login/shared/_header_logo.html.erb
22
+ - lib/explorak5_login_prueba/app/views/login/_login_content.html.erb
35
23
  - lib/explorak5_login_prueba/explorak5_login_prueba.rb
36
24
  - lib/explorak5_login_prueba/public/images/images_k5/1-cortar-y-pegar.png
37
25
  - lib/explorak5_login_prueba/public/images/images_k5/1.1 página materias_desglose.png
@@ -1,20 +0,0 @@
1
- <%
2
- # Copyright (C) 2015 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <% url = (params[:canvas_login] != '1' && @domain_root_account.try(:forgot_password_external_url)) || "#" %>
20
- <%= link_to t('dont_know_password', "Forgot Password?"), url, :class => (url != '#' ? "ic-Login__link not_external" : "ic-Login__link forgot_password_link"), :id => "login_forgot_password" %>
@@ -1,34 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="110" height="16" viewBox="25 265 743 80"><title>Instructure</title>
2
- <g class="ic-Instructure-Logo">
3
- <g>
4
- <polygon class="st0" points="23.8,331.5 72.3,358.8 120.7,331.5 72.3,304.2 "/>
5
- <polygon class="st0" points="98.4,293.7 120.7,281.1 98.3,268.5 76,281.1 "/>
6
- <polygon class="st0" points="94.6,266.4 72.3,253.8 49.9,266.4 72.3,279 "/>
7
- <polygon class="st0" points="68.5,281.1 46.2,268.5 23.8,281.1 46.2,293.7 "/>
8
- </g>
9
- <g>
10
- <path class="st0" d="M166.3,344.9v-78.1h12.9v78.1H166.3z"/>
11
- <path class="st0" d="M202,344.9v-78.1H215l16.4,48.3v-48.3h11.8v78.1h-12.3l-17.1-50.7v50.7H202z"/>
12
- <path class="st0" d="M357.4,278.2h-13v66.7h-12.9v-66.7h-13v-11.4h39V278.2z"/>
13
- <path class="st0" d="M404.6,344.9l-9.9-31.1h-6.5v31.1h-12.9v-78.1h20.2c11.8,0,19.6,4.7,19.6,16.5v13.9c0,7.5-3.1,12.2-8.5,14.5
14
- l11.2,33.1H404.6z M388.2,302.7h6.8c4.2,0,7.1-1.6,7.1-7.1v-10.1c0-5.6-2.9-7.1-7.1-7.1h-6.8V302.7z"/>
15
- <path class="st0" d="M475.4,329.3c0,12-7.6,16.5-19.4,16.5h-0.4c-11.8,0-19.4-4.4-19.4-16.5v-62.5h12.9v60.5
16
- c0,5.6,2.5,7.1,6.7,7.1c4.2,0,6.7-1.6,6.7-7.1v-60.5h12.9V329.3z"/>
17
- <path class="st0" d="M536.5,329.3c0,12-7.8,16.5-19.6,16.5h-0.2c-11.8,0-19.6-4.4-19.6-16.5v-46.8c0-11.6,7.8-16.5,19.6-16.5h0.2
18
- c11.8,0,19.6,4.9,19.6,16.5v9h-12.9v-7c0-5.5-2.7-7.1-6.8-7.1c-4.1,0-6.8,1.7-6.8,7.1v42.8c0,5.5,2.7,7.1,6.8,7.1
19
- c4.1,0,6.8-1.7,6.8-7.1v-8.9h12.9V329.3z"/>
20
- <path class="st0" d="M592.1,278.2h-13v66.7h-12.9v-66.7h-13v-11.4h39V278.2z"/>
21
- <path class="st0" d="M649,329.3c0,12-7.6,16.5-19.4,16.5h-0.4c-11.8,0-19.4-4.4-19.4-16.5v-62.5h12.9v60.5c0,5.6,2.5,7.1,6.7,7.1
22
- c4.2,0,6.7-1.6,6.7-7.1v-60.5H649V329.3z"/>
23
- <path class="st0" d="M700.4,344.9l-9.9-31.1H684v31.1H671v-78.1h20.2c11.8,0,19.6,4.7,19.6,16.5v13.9c0,7.5-3.1,12.2-8.5,14.5
24
- l11.2,33.1H700.4z M684,302.7h6.8c4.2,0,7.1-1.6,7.1-7.1v-10.1c0-5.6-2.9-7.1-7.1-7.1H684V302.7z"/>
25
- <path class="st0" d="M289.8,289.5v-5.7c0-4.9-2.8-6.7-6.6-6.7c-3.8,0-6.6,1.8-6.6,6.7v5.4c0,4,1.3,5.8,5,7.9l9.1,5.1
26
- c7.5,4.2,11.9,7.7,11.9,16.1v11.3c0,12-7.5,16.3-19.3,16.3h-0.2c-11.8,0-19.3-4.1-19.3-16.3v-8.4h12.7v6.6c0,4.8,2.8,6.9,6.7,6.9
27
- c3.9,0,6.7-2.1,6.7-6.9v-6.1c0-4-1.2-6-5.1-8.1l-9-5.1c-7.6-4.3-11.9-7.9-11.9-16.1V282c0-11.6,8.5-16.1,19.2-16.1h0.2
28
- c10.7,0,19.2,4.5,19.2,16.1v7.5H289.8z"/>
29
- <polygon class="st0" points="732.5,344.9 732.5,266.9 766.7,266.9 766.7,278.2 745.4,278.2 745.4,299.6 763.3,299.6 763.3,311
30
- 745.4,311 745.4,333.5 767,333.5 767,344.9 "/>
31
- </g>
32
- </g>
33
-
34
- </svg>
@@ -1,49 +0,0 @@
1
- <%
2
- # Copyright (C) 2015 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <% hide_self_reg_banner ||= false %>
20
-
21
- <% if @domain_root_account && @domain_root_account.self_registration? && !hide_self_reg_banner %>
22
- <% if @domain_root_account.self_registration_type == 'observer' %>
23
- <% js_env :ACCOUNT => account_json(@domain_root_account, nil, session, ['registration_settings']),
24
- :PASSWORD_POLICY => @domain_root_account.password_policy %>
25
- <%= link_to '#',
26
- :id => 'coenrollment_link',
27
- :class => "ic-Login__link ic-Login__register-banner",
28
- data: reg_link_data(nil) do %>
29
- <div class="ic-Login__banner-title">
30
- <%= t('Parent of a Canvas User?') %>
31
- </div>
32
- <div class="ic-Login__banner-subtitle">
33
- <%= t('Click Here For an Account') %>
34
- </div>
35
- <% end %>
36
- <% else %>
37
- <%= link_to "/register_from_website",
38
- :id => 'register_link',
39
- :class => "ic-Login__link ic-Login__register-banner" do %>
40
- <div class="ic-Login__banner-title">
41
- <%= t('Need a Canvas Account?') %>
42
- </div>
43
- <div class="ic-Login__banner-subtitle">
44
- <%= t("Click Here, It's Free!") %>
45
- </div>
46
- <% end %>
47
- <% end %>
48
- <% end %>
49
-
@@ -1,40 +0,0 @@
1
- <%
2
- # Copyright (C) 2015 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <% if aacs.present? %>
20
- <div class="ic-Login__sso">
21
- <ul class="ic-Login__sso-list">
22
- <% aacs.each do |aac| %>
23
- <% only_one = aacs.size < 2 %>
24
- <% only_one_of_type = aacs.select { |a| a.auth_type == aac.auth_type }.size < 2 %>
25
- <li class="ic-Login__sso-list__item">
26
- <a href="/login/<%= aac.auth_type %><%= only_one_of_type ? '' : "/#{aac.id}" %>"
27
- class="Button Button--primary <%= only_one ? 'ic-Login__sso-button--has-text ' : '' %>ic-Login__sso-button ic-Login__sso-button--<%= aac.auth_type %>">
28
- <%= render partial: "shared/auth_type_icon",
29
- locals: {
30
- auth_type: aac.auth_type,
31
- sr_message: only_one ? nil : aac.class.login_message,
32
- with_login_text: only_one ? aac.class.login_message : nil
33
- } %>
34
- </a>
35
-
36
- </li>
37
- <% end %>
38
- </ul>
39
- </div>
40
- <% end %>
@@ -1,144 +0,0 @@
1
- <%
2
- # Copyright (C) 2011 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <% js_bundle :mobile_login %>
20
-
21
- <% extend Api::V1::Account %>
22
- <%
23
- unique_id = begin
24
- params.dig(:pseudonym_session, :unique_id)&.to_s
25
- rescue TypeError
26
- nil
27
- end
28
- %>
29
-
30
- <div class="mobileLogin-Header">
31
- <span class="screenreader-only">
32
- <%= t 'Canvas by Instructure' %>
33
- <script type="text/javascript">
34
- window.onload = function() {
35
- var msg
36
- var email = document.querySelector('[placeholder="Email"]')
37
- function showMessage() {
38
- var elt = document.querySelector('span#screenreader-errormsg')
39
- if (elt) elt.innerText = msg
40
- }
41
- <% if request.post? && flash[:error] %>
42
- msg = '<%= t "Error logging in: %{error_msg}", error_msg: flash[:error] %>'
43
- setTimeout(showMessage, 1500)
44
- if (email) email.focus()
45
- <% end %>
46
- }
47
- </script>
48
- <span aria-live="assertive" id="screenreader-errormsg"></span>
49
- </span>
50
- </div>
51
- <%= form_for :pseudonym_session, :url => url_for({ action: :create }.merge(params.slice(:id).to_unsafe_h)), :html => {:id => "login_form", :class => "front face", :novalidate => 'novalidate', :autocomplete => "off" } do |f| %>
52
-
53
- <div class="ic-Form-control">
54
- <input
55
- class="ic-Input"
56
- autocomplete="off"
57
- autocorrect="off"
58
- placeholder="<%= @login_handle_name%>"
59
- type="<%= @login_handle_is_email ? 'email' : 'text' %>"
60
- name="pseudonym_session[unique_id]"
61
- value="<%= unique_id %>" />
62
- </div>
63
- <div class="ic-Form-control">
64
- <input
65
- class="ic-Input"
66
- type="password"
67
- name="pseudonym_session[password]"
68
- autocomplete="off"
69
- autocorrect="off"
70
- placeholder="<%= t :password, "Password" %>" />
71
- </div>
72
- <button
73
- type="submit"
74
- class="Button Button--primary Button--block"><%= t('log_in', 'Log In') %>
75
- </button>
76
-
77
- <% if request.post? && flash[:error] %>
78
- <div aria-hidden="true" class="error"><%= flash[:error] %></div>
79
- <% end %>
80
-
81
- <div class="forgotBlock">
82
- <% if url = params[:canvas_login].blank? && @domain_root_account.try(:forgot_password_external_url) %>
83
- <%= link_to t('dont_know_password', "Forgot Password?"), url, :class => 'forgot-password' %>
84
- <% else %>
85
- <a tabindex="0" role="link" class="forgot-password flip-to-back"><%= t('dont_know_password', "Forgot Password?") %></a>
86
- <% end %>
87
- </div>
88
- <% end %>
89
- <%= form_for :pseudonym_session, :url => forgot_password_path, :html => {:id => "forgot_password_form", :class => 'back face', :autocomplete => "off" } do |f| %>
90
- <div class="ic-Form-control">
91
- <label for="pseudonym_session_unique_id_forgot" class="screenreader-only"><%= t('login_handle', "Enter your %{login_handle_name} and we'll send you a link to change your password.", :login_handle_name => @login_handle_name) %></label>
92
- <input
93
- class="ic-Input"
94
- autocomplete="off"
95
- autocorrect="off"
96
- type="<%= @login_handle_is_email ? 'email' : 'text' %>"
97
- name="pseudonym_session[unique_id_forgot]"
98
- value=""
99
- placeholder="<%= @login_handle_name %>"
100
- id="pseudonym_session_unique_id_forgot" />
101
- </div>
102
- <button
103
- type="submit"
104
- class="Button Button--primary Button--block request-password-button"
105
- data-text-while-loading="<%= t(:sending, "Sending...") %>"
106
- data-text-when-loaded="<%= t(:sent, "Sent!") %>"
107
- data-text-on-error="<%= t(:error, "An error occurred, please try again later.") %>"
108
- >
109
- <%= t('buttons.request_password', 'Request Password') %>
110
- </button>
111
- <div class="forgotBlock">
112
- <a tabindex="0" role="link" class="flip-to-front"><%= t('back_to_login', "Back to Login") %></a>
113
- </div>
114
- <% end %>
115
-
116
- <% if @domain_root_account && @domain_root_account.self_registration? %>
117
- <% if @domain_root_account.self_registration_type == 'observer' %>
118
- <% js_env :ACCOUNT => account_json(@domain_root_account, nil, session, ['registration_settings']),
119
- :PASSWORD_POLICY => @domain_root_account.password_policy %>
120
- <div id='coenrollment_link' class='enrollment_link'>
121
- <div class="ic-Login__banner-title">
122
- <%= t('Parent of a Canvas User?') %>
123
- </div>
124
- <%= link_to '#',
125
- :class => "ic-Login__link ic-Login__register-banner ic-Login__banner-subtitle",
126
- data: reg_link_data(nil) do %>
127
- <%= t('Create Account') %>
128
- <% end %>
129
- </div>
130
- <% else %>
131
- <div class='enrollment_link'>
132
- <%= link_to "/register_from_website",
133
- :id => 'register_link',
134
- :class => "ic-Login__link ic-Login__register-banner" do %>
135
- <div class="ic-Login__banner-title">
136
- <%= t('Need a Canvas Account?') %>
137
- </div>
138
- <div class="ic-Login__banner-subtitle">
139
- <%= t("Click Here, It's Free!") %>
140
- </div>
141
- <% end %>
142
- </div>
143
- <% end %>
144
- <% end %>
@@ -1,32 +0,0 @@
1
- <%
2
- # Copyright (C) 2015 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <%
20
- css_bundle :login
21
- js_bundle :login
22
- provide :page_title, t(:page_title, "Log In to Canvas")
23
- %>
24
-
25
- <% extend Api::V1::Account %>
26
-
27
- <% add_body_class "full-width ic-Login-Body" %>
28
- <%= render "login/canvas/new_login_content" %>
29
-
30
- <% if flash[:logged_out] && HostUrl.file_host(@domain_root_account, request.host_with_port) %>
31
- <img class="hidden-readable" src="//<%= HostUrl.file_host(@domain_root_account, request.host_with_port) %>/file_session/clear"/>
32
- <% end %>
@@ -1,43 +0,0 @@
1
- <%
2
- # Copyright (C) 2024 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <%
20
- css_bundle :login_confirm
21
- @headers = false
22
- add_body_class "full-width modal body--login-confirmation"
23
- provide :page_title, t("Account Verification Required")
24
- %>
25
-
26
- <div id="modal-box" class="ic-Login-confirmation">
27
- <header class="ic-Login-confirmation__header">
28
- <%= image_tag("login/canvas-logo@2x.png", class: "ic-Login-confirmation__logo", alt: "Canvas by Instructure") %>
29
- </header>
30
- <div class="ic-Login-confirmation__content">
31
- <h2 class="ic-Login-confirmation__headline"><%= t("Account Verification Required") %></h2>
32
- <p><%= t("To secure your account, you must validate your email before you can log in to Canvas.") %></p>
33
- <p><%= t("A verification code has been sent to %{email}. Please provide this code below:", email: @verification_email) %></p>
34
- <%= form_tag login_email_verify_url do %>
35
- <%= hidden_field_tag :d, @jwt %>
36
- <%= text_field_tag :code, nil, class: "ic-Input", placeholder: t("Verification Code"), autocomplete: "off" %>
37
- <div class="button_box ic-Login-confirmation__actions">
38
- <%= submit_tag(t("Submit"), class: "Button Button--primary") %>
39
- <%= link_to(t("Cancel"), login_url, :class => "Button Button--secondary") %>
40
- </div>
41
- <% end %>
42
- </div>
43
- </div>
@@ -1,53 +0,0 @@
1
- <%
2
- # Copyright (C) 2014 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <%
20
- css_bundle :login
21
- @headers = false
22
- provide :page_title, t(:page_title, "Log Out")
23
- add_body_class "full-width ic-Login-Body"
24
- %>
25
- <div class="ic-Login">
26
- <div class="ic-Login__container">
27
- <div class="ic-Login__content">
28
- <div class="ic-Login__innerContent">
29
- <div class="ic-Login__header">
30
- <%= render :partial => 'login/shared/header_logo' %>
31
- </div>
32
- <div class="ic-Login__body">
33
- <h1 class="ic-Login__title">
34
- <%= t 'log_out', 'Log Out' %>
35
- </h1>
36
- <p class="ic-Login__text">
37
- <%= t 'details.log_out', 'Are you sure you want to log out of Canvas?' %>
38
- </p>
39
- <%= form_tag logout_path, method: :delete do %>
40
- <div class="ic-Login__actions">
41
- <%= link_to(t(:cancel, "Cancel"), '/', :class => "ic-Login__link") %>
42
- <div class="ic-Login__actions--right">
43
- <button type="submit" class="Button Button--login" id="Button--logout-confirm">
44
- <%= t("Log Out") %>
45
- </button>
46
- </div>
47
- </div>
48
- <% end %>
49
- </div> <!-- end ic-Login__body -->
50
- </div> <!-- end ic-Login__innerContent -->
51
- </div> <!-- end ic-Login__content -->
52
- </div> <!-- end ic-Login__content -->
53
- </div> <!-- end ic-Login__container -->
@@ -1,46 +0,0 @@
1
- <%
2
- # Copyright (C) 2014 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <%
20
- css_bundle :login
21
- @headers = false
22
- provide :page_title, t(:page_title, "Logged Out")
23
- add_body_class "full-width ic-Login-Body"
24
- %>
25
- <div class="ic-Login">
26
- <div class="ic-Login__container">
27
- <div class="ic-Login__content">
28
- <div class="ic-Login__innerContent">
29
- <div class="ic-Login__header">
30
- <%= render :partial => 'login/shared/header_logo' %>
31
- </div>
32
- <div class="ic-Login__body">
33
- <h1 class="ic-Login__title">
34
- <%= t 'Logged Out' %>
35
- </h1>
36
- <p class="ic-Login__text">
37
- <%= t 'You are logged out of Canvas.' %>
38
- </p>
39
- <div class="ic-Login__actions">
40
- <%= link_to(t("Click here to log in again"), login_url, :class => "ic-Login__link") %>
41
- </div>
42
- </div> <!-- end ic-Login__body -->
43
- </div> <!-- end ic-Login__innerContent -->
44
- </div> <!-- end ic-Login__content -->
45
- </div> <!-- end ic-Login__content -->
46
- </div> <!-- end ic-Login__container -->
@@ -1,36 +0,0 @@
1
- <%
2
- # Copyright (C) 2015 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <% provide :page_title do %>
20
- <%= t 'Failed to Log In' %>
21
- <% end %>
22
-
23
- <div id="unauthorized_holder">
24
- <% css_bundle("unauthorized_message") %>
25
- <div id="unauthorized_message">
26
- <h2 class="ui-state-error">
27
- <%= t 'Failed to Log In' %>
28
- </h2>
29
- <p>
30
- <%= flash[:delegated_message] %>
31
- </p>
32
- <p>
33
- <%= t "You can try to *log in again*.", wrapper: link_to('\1', login_url) %>
34
- </p>
35
- </div>
36
- </div>
@@ -1,144 +0,0 @@
1
- <%
2
- # Copyright (C) 2012 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <%
20
- css_bundle :otp_login
21
- js_bundle :otp_login
22
- @headers = false
23
- add_body_class "full-width modal body--login-confirmation"
24
- provide :page_title, t("Multi-Factor Authentication")
25
- %>
26
-
27
- <div id="modal-box" class="ic-Login-confirmation">
28
- <header class="ic-Login-confirmation__header">
29
- <%= image_tag("login/canvas-logo@2x.png", class:"ic-Login-confirmation__logo", alt:"Canvas by Instructure") %>
30
- </header>
31
- <div class="ic-Login-confirmation__content">
32
- <h2 class="ic-Login-confirmation__headline"><%= t("Multi-Factor Authentication") %></h2>
33
- <% if configuring? %>
34
- <div>
35
- <% if @current_user.mfa_settings(pseudonym_hint: @current_pseudonym) == :required %>
36
- <p><%= t("You are required to set up Multi-Factor Authentication.") %></p>
37
- <% end %>
38
- <% otp_via_sms_message = otp_via_sms_in_us_region? ? mt(<<~MESSAGE) : ""
39
- The device can be a code generator or a mobile phone that receives text messages.
40
- **Using an authenticator app is strongly recommended for enhanced security.**
41
- MESSAGE
42
- %>
43
- <%= mt(<<~BODY, otp_via_sms_message:)
44
- Multi-Factor Authentication (MFA) enhances security by requiring a physical device and your Canvas login password.
45
- %{otp_via_sms_message}
46
-
47
- Configure MFA by scanning the QR code with a Time-based One-Time Password (TOTP) app on iPhone or Android
48
- (e.g., Google Authenticator, Microsoft Authenticator, Authy). After setup, print backup codes from your profile
49
- page if your primary MFA device is unavailable.
50
- BODY
51
- %>
52
- <div class="content-box">
53
- <div class="grid-row <%= otp_via_sms_in_us_region? ? "otp-login__grid-row-divider" : "center-xs" %>">
54
- <div class="<%= otp_via_sms_in_us_region? ? "col-xs-12 col-sm-12 col-md-6" : "col-xs-12" %>">
55
- <h3><%= t("Use Authenticator App") %></h3>
56
- <%
57
- provisioning_uri = ROTP::TOTP.new(session[:pending_otp_secret_key]).provisioning_uri("#{@domain_root_account.name} Canvas- #{@current_pseudonym.unique_id}")
58
- qr_code = RQRCode::QRCode.new(provisioning_uri, level: :l)
59
- %>
60
- <div class="otp-qr-code">
61
- <img src="data:image/png;base64,<%= Base64.encode64(qr_code.as_png(module_px_size: 4).to_s).strip %>" alt="<%= t("Time-based one-time password (TOTP) QR code") %>">
62
- </div>
63
- <p class="<%= "otp-login__text-align--xs-center" if otp_via_sms_in_us_region? %>">
64
- <strong><%= t("Secret Key:") %></strong>
65
- <br>
66
- <span class="otp-login__secret-key"><%= session[:pending_otp_secret_key] %></span>
67
- </p>
68
- </div>
69
- <% if otp_via_sms_in_us_region? %>
70
- <div class="col-xs-12 col-sm-12 col-md-6">
71
- <h3><%= t("Use SMS") %></h3>
72
- <p><%= t("Only US mobile numbers are supported.") %></p>
73
- <% ccs = @current_user.communication_channels.sms.unretired.map { |cc| [cc.path, cc.id] } %>
74
- <% unless ccs.empty? %>
75
- <% ccs << ["<< #{t("a new mobile number")} >>", "{{id}}"] %>
76
- <%= 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| %>
77
- <div class="ic-Form-control">
78
- <%= f.blabel :otp_communication_channel_id, en: "US Mobile Number", class: "ic-Label" %>
79
- <div class="controls">
80
- <%= f.select(:otp_communication_channel_id, ccs, { selected: @cc.try(:id) }, class: "ic-Input") %>
81
- </div>
82
- </div>
83
- <div>
84
- <button type="submit" class="Button Button--primary">
85
- <%= t("Send") %>
86
- </button>
87
- </div>
88
- <% end %>
89
- <% end %>
90
- <%= form_for :otp_login, url: send_otp_via_sms_path, html: { id: "new_phone_form", style: (hidden(false) unless ccs.empty?), class: "ic-Form-group" } do |f| %>
91
- <div class="ic-Form-control">
92
- <%= f.blabel :phone_number, :en => "US Mobile Number", :class => "ic-Label" %>
93
- <div class="controls">
94
- <%= f.text_field :phone_number, :class => "ic-Input" %>
95
- </div>
96
- </div>
97
- <div>
98
- <button type="submit" class="Button Button--primary">
99
- <%= t("Send") %>
100
- </button>
101
- <% unless ccs.empty? %>
102
- <a href="#" class="Button Button--link" id="back_to_choose_number_link">
103
- <%= t("Choose an existing number") %>
104
- </a>
105
- <% end %>
106
- </div>
107
- <% end %>
108
- </div>
109
- <% end %>
110
- </div>
111
- </div>
112
- </div>
113
- <% end %>
114
- <% if @cc %>
115
- <div>
116
- <p><%= t("Please enter the verification code sent to your mobile phone number.") %></p>
117
- </div>
118
- <% if @cc.otp_impaired? %>
119
- <div class="alert alert-warning">
120
- <p><%= t("Please check your email if your SMS code does not arrive soon.") %></p>
121
- </div>
122
- <% end %>
123
- <% else %>
124
- <div>
125
- <p><%= t("Please enter the verification code shown by your token.") %></p>
126
- </div>
127
- <% end %>
128
- <%= form_for :otp_login, url: otp_login_path, html: { id: "login_form", class: "ic-Form-group" } do |f| %>
129
- <div class="ic-Form-control">
130
- <div class="ic-Input-group">
131
- <%= f.blabel :verification_code, :en => "Verification Code", :class => "ic-Label" %>
132
- <%= f.text_field :verification_code, :class => "ic-Input", :autocomplete => "off" %>
133
- <button type="submit" class="Button Button--primary">
134
- <%= t("Verify") %>
135
- </button>
136
- </div>
137
- </div>
138
- <div>
139
- <%= f.check_box :remember_me %>
140
- <%= f.label :remember_me, :en => "Remember this computer" %>
141
- </div>
142
- <% end %>
143
- </div>
144
- </div>
@@ -1,21 +0,0 @@
1
- <%
2
- # Copyright (C) 2015 - present Instructure, Inc.
3
- #
4
- # This file is part of Canvas.
5
- #
6
- # Canvas is free software: you can redistribute it and/or modify it under
7
- # the terms of the GNU Affero General Public License as published by the Free
8
- # Software Foundation, version 3 of the License.
9
- #
10
- # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
11
- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
- # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13
- # details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License along
16
- # with this program. If not, see <http://www.gnu.org/licenses/>.
17
- %>
18
-
19
- <div class="ic-Login-header__logo">
20
- <%= image_tag(brand_variable("ic-brand-Login-logo"), :alt => alt_text_for_login_logo) %>
21
- </div>