Unverified Commit 37f1d57a authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

process MR review

parent 6a14a679
Pipeline #13803 passed with stages
in 52 seconds
......@@ -26,9 +26,9 @@ The 'totp-problem' teaches people how to use TOTP a.k.a. Google Authenticator.
Students have to follow these steps:
- Read introduction on TOTP/Google Authenticator and acquire the required App.
- Read introduction on TOTP/Google Authenticator and install the required App.
- Create an account in a fictional social network.
- Password has to be strong, follows ``password-problem`` guidelines.
- Choose a strong password that follows ``password-problem`` guidelines.
- Login with the account that was created in the previous step.
- Find the *Settings* page and the *Enable Multifacto Authentication* button
within it.
......@@ -141,15 +141,12 @@ Adding the problem to a course
You can add a problem by including them in an iFrame.
Adding a problem
++++++++++++++++
- Add New Component: **Problem**
- Click on **HTML**
- Click on **Edit**
- Click the **HTML** button in the editor, so you can paste raw HTML.
- Now, you need to paste the contents from this repository's
``examples/<your-problem.html>-no-submit-button.html`` into the editor.
``examples/<your-problem.html>.html`` into the editor.
- Make sure the ``src`` attribute contains a link to the locale your course is
in (``//totem-project.org/js-components/<locale>/<problem>``).
......
......@@ -105,10 +105,8 @@ Predictable substitutions like "@" instead of "a" do not help very much: Predict
"## Register your free Veebr account\nPlease enter a unique username and a strong password.": |-
## Register your free Veebr account
Please enter a unique username and a strong password.
You have successfully completed this challenge. Please click on the "__Submit__" button outside of this frame to get your score.: >-
You have successfully completed this challenge. Please click on the
"__Submit__" button outside of this frame to get your score.
Good job! You may now continue the course..: Good job! You may now continue the course..
You have successfully completed this challenge. Good job! You may now continue the course.: >-
You have successfully completed this challenge. Good job! You may now continue the course.
"## Settings\nOur social network doesn't have many settings yet, but we do offer\n2FA. Protect your account by enabling this.": |-
## Settings
Our social network doesn't have many settings yet, but we do offer
......
......@@ -108,10 +108,8 @@ download an app?* For 2FA, *you need something you know* (your\npassword), *and
"## Register your free Veebr account\nPlease enter a unique username and a strong password.": |-
## Registra tu cuenta gratuita en Veebr
Por favor ingresa un nombre de usuario y una contraseña fuerte .
You have successfully completed this challenge. Please click on the "__Submit__" button outside of this frame to get your score.: >-
Has completado este reto. Por favor has clic en el botón
"__Enviar__" que se encuentra fuera del recuadro para obtener tu calificación.
Good job! You may now continue the course..: ¡Buen trabajo! Ahora puedes continuar con el curso.
You have successfully completed this challenge. Good job! You may now continue the course.: >-
Has completado este reto. ¡Buen trabajo! Ahora puedes continuar con el curso.
"## Settings\nOur social network doesn't have many settings yet, but we do offer\n2FA. Protect your account by enabling this.": |-
## Ajustes
Nuestra red social aún no cuenta con muchas configuraciones, pero te ofrecemos Autenticación de dos pasos (2FA). Para proteger tu cuenta por favor activala haciendo clic en “__Ajustes__”.
......
......@@ -53,9 +53,8 @@ Predictable substitutions like "@" instead of "a" do not help very much: است
"## Register your free Veebr account\nPlease enter a unique username and a strong password.": |-
## لطفا حساب رایگان خود در Veebr را ثبت کنید
لطفا نام کاربری یگانه و رمز یا کلمه عبور قوی انتخاب کنید.
You have successfully completed this challenge. Please click on the "__Submit__" button outside of this frame to get your score.: >-
این چالش را با موفقیت به اتمام رساندید. لطفا روی دکمه "__Submit__" بیرون از این چارچوب کلیک کنید تا به امتیازتان برسید.
Good job! You may now continue the course..: آفرین! حالا می‌توانید به درس ادامه دهید…
You have successfully completed this challenge. Good job! You may now continue the course.: >-
این چالش را با موفقیت به اتمام رساندید. آفرین! حالا می‌توانید به درس ادامه دهید.
"## Sorry..\nThat code is not correct, please go back and try again.": |-
## ببخشید. این کد درست نبود. لطفا برگردید و دوباره سعی کنید.
"Go ahead and start up the FreeOTP Authenticator App. Then tap on the\nsmall QR-code icon in the top right corner:\n\n![QR-code button](<%= media_path %>qrcode-button.png)\n\nNow aim the camera at the QR code and wait for the App to recognize the\nQR code. Sometimes moving the camera a bit backward or forward can help\nfocus the image.\n\nOnce the app has scanned the QR code, continue to the next step.": |-
......
......@@ -59,11 +59,8 @@ Predictable substitutions like "@" instead of "a" do not help very much: >-
"## Register your free Veebr account\nPlease enter a unique username and a strong password.": |-
## Créez un compte gratuit sur Veebr
Veuillez entrer un nom d'utilisateur unique et un mot de passe robuste.
You have successfully completed this challenge. Please click on the "__Submit__" button outside of this frame to get your score.: >-
Vous avez relevé cet exercice avec succès. Veuillez cliquer sur le bouton
"__Soumettre__" en dessous de ce cadre pour obtenir votre score, puis passer à
la page suivante pour continuer le cours Totem.
Good job! You may now continue the course..: Bravo ! Vous pouvez à présent continuer le cours Totem.
You have successfully completed this challenge. Good job! You may now continue the course.: >-
Vous avez relevé cet exercice avec succès. Bravo ! Vous pouvez à présent continuer le cours Totem.
"## Sorry..\nThat code is not correct, please go back and try again.": |-
## Pardon..
Ce code n'est pas correct, veuillez revenir en arrière et réessayer.
......
......@@ -105,10 +105,8 @@ Predictable substitutions like "@" instead of "a" do not help very much: Predict
"## Register your free Veebr account\nPlease enter a unique username and a strong password.": |-
## Создайте свой аккаунт Veebr
Пожалуйста, укажите уникальное имя пользователя и надёжный пароль.
You have successfully completed this challenge. Please click on the "__Submit__" button outside of this frame to get your score.: >-
Вы успешно справились с упражнением. Пожалуйста, нажмите кнопку "__Отправить__"
за этой рамкой, чтобы узнать ваш результат.
Good job! You may now continue the course..: Прекрасно! Можете продолжить курс.
You have successfully completed this challenge. Good job! You may now continue the course.: >-
Вы успешно справились с упражнением. Прекрасно! Можете продолжить курс.
"## Settings\nOur social network doesn't have many settings yet, but we do offer\n2FA. Protect your account by enabling this.": |-
## Настройки
В нашей социальной сети не так уж много настроек, но двухфакторную
......
......@@ -6,7 +6,7 @@ if (typeof window.zxcvbn == 'undefined') {
window.zxcvbn = require('@contentpass/zxcvbn');
}
window.pwcheck = function (inputElement, debug) {
window.pwcheck = function (inputElement) {
if (!inputElement) {
return; // No input element so nothing to do.
}
......
......@@ -22,9 +22,9 @@ html
script(type="text/javascript" src=`${js_path}pwcheck.min.js`)
include pwcheck_messages.pug
script(type="text/javascript").
'use strict';
var inputElement = document.getElementById("password");
var debug = #{debug};
pwcheck(inputElement, debug);
pwcheck(inputElement);
......@@ -129,15 +129,7 @@ html
.modal_body
.icon.fa.fa-check-circle
:markdown:__
You have successfully completed this challenge. Please click on the "__Submit__" button outside of this frame to get your score.
#end_modal.modal.hidden
.modal_wrapper
.modal_head
h3.emphasized= __("Please continue")
.modal_body
.icon.fa.fa-thumbs-up
:markdown:__
Good job! You may now continue the course..
You have successfully completed this challenge. Good job! You may now continue the course.
.veebr
.subnav
.vbr-link= __("Veeb stream")
......@@ -269,7 +261,7 @@ html
var debug = #{debug};
// Skipping the check where the password problem is untranslated
if ('#{locale}' != 'ru') {
pwcheck(inputElement, showHints, debug);
pwcheck(inputElement);
} else {
$(inputElement).addClass('pwcheck-passed');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment