Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 660bd82

Browse files
author
Billy Clark
committed
ui review feedback (other mfa options were a little too small to read)
1 parent 6a153fd commit 660bd82

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

dictionaries/mfa.definition.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
"fr": "TODO",
1313
"ko": "TODO"
1414
},
15-
"backup_code_header": {
15+
"backupcode_header": {
1616
"en": "Backup code",
1717
"es": "TODO",
1818
"fr": "TODO",
1919
"ko": "TODO"
2020
},
21-
"backup_code_icon": {
21+
"backupcode_icon": {
2222
"en": "Backup code icon",
2323
"es": "TODO",
2424
"fr": "TODO",
2525
"ko": "TODO"
2626
},
27-
"backup_code_reminder": {
27+
"backupcode_reminder": {
2828
"en": "Each code can only be used once, so the code you enter this time will be used up and will not be available again.",
2929
"es": "TODO",
3030
"fr": "TODO",
3131
"ko": "TODO"
3232
},
33-
"backup_code_input": {
33+
"backupcode_input": {
3434
"en": "Enter code",
3535
"es": "TODO",
3636
"fr": "TODO",

themes/material/mfa/other_mfas.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ function excludeSelf($others, $selfId) {
1616
}
1717

1818
foreach (excludeSelf($mfaOptions, $currentMfaId) as $otherOption) {
19+
$type = $otherOption['type'];
20+
21+
//TODO: is there an svg of the u2f icon?
22+
$image = 'mfa-'.$type.($type === 'u2f' ? '.png' : '.svg');
1923
?>
2024
<li class="mdl-menu__item" onclick="location.href += '&mfaId=<?= $otherOption['id'] ?>'">
21-
<span class="mdl-typography--caption">
22-
<?= $this->t('{material:mfa:use_'.$otherOption['type'].'}') ?>
25+
<span class="mdl-list__item-primary-content">
26+
<img class="mdl-list__item-icon" src="<?= $image ?>"
27+
alt="<?= $this->t('{material:mfa:'.$type.'_icon}') ?>">
28+
29+
<?= $this->t('{material:mfa:use_'.$type.'}') ?>
2330
</span>
2431
</li>
2532
<?php

themes/material/mfa/prompt-for-mfa-backupcode.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@
2626
?>
2727
<div class="mdl-card mdl-shadow--8dp">
2828
<div class="mdl-card__media white-bg margin" layout-children="column">
29-
<img src="mfa-backup-codes.svg"
30-
alt="<?= $this->t('{material:mfa:backup_code_icon}') ?>">
29+
<img src="mfa-backupcode.svg"
30+
alt="<?= $this->t('{material:mfa:backupcode_icon}') ?>">
3131
</div>
3232

3333
<div class="mdl-card__title center">
3434
<h1 class="mdl-card__title-text">
35-
<?= $this->t('{material:mfa:backup_code_header}') ?>
35+
<?= $this->t('{material:mfa:backupcode_header}') ?>
3636
</h1>
3737
</div>
3838

3939
<div class="mdl-card__title center" >
4040
<p class="mdl-card__subtitle-text">
41-
<?= $this->t('{material:mfa:backup_code_reminder}') ?>
41+
<?= $this->t('{material:mfa:backupcode_reminder}') ?>
4242
</p>
4343
</div>
4444

4545
<div class="mdl-card__supporting-text" layout-children="column">
4646
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
4747
<label for="mfaSubmission" class="mdl-textfield__label">
48-
<?= $this->t('{material:mfa:backup_code_input}') ?>
48+
<?= $this->t('{material:mfa:backupcode_input}') ?>
4949
</label>
5050
<input name="mfaSubmission" class="mdl-textfield__input" autofocus
5151
id="mfaSubmission"/>

themes/material/mfa/prompt-for-mfa-totp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
?>
2727
<div class="mdl-card mdl-shadow--8dp">
2828
<div class="mdl-card__media white-bg margin" layout-children="column">
29-
<img src="mfa-totp-app.svg" alt="<?= $this->t('{material:mfa:totp_icon}') ?>">
29+
<img src="mfa-totp.svg" alt="<?= $this->t('{material:mfa:totp_icon}') ?>">
3030
</div>
3131

3232
<div class="mdl-card__title center">
File renamed without changes.

0 commit comments

Comments
 (0)