Skip to content

Commit 12a923c

Browse files
committed
mask useless otp text with maskotp
1 parent b84bc6b commit 12a923c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

routes/web/templates/group/list.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
{{ tr "Special groups" }}:
2929
{{ tr "Admins" }} <i class="bi-star-fill text-warning"></i>,
3030
{{ tr "Users" }} <i class="bi-person"></i>,
31+
{{ if not .MaskOTP }}
3132
{{ tr "Can use OTP" }} <i class="bi-key"></i>
33+
{{ end }}
3234
</figcaption>
3335
</p>
3436

routes/web/templates/user/edit.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
<ul>
5252
<li><i class="bi-star-fill text-warning"></i> {{ tr "Admins" }} : <strong>«{{ .groupsinfo.Admins }}» </strong>,</li>
5353
<li><i class="bi-person"></i> {{ tr "Users" }} : «{{ .groupsinfo.Users }}»,</li>
54+
{{ if not .MaskOTP }}
5455
<li><i class="bi-key"></i> {{ tr "Can use OTP" }} : «{{ .groupsinfo.OTP }}»</li>
56+
{{end}}
5557
</ul>
5658
</div>
5759
</div>

routes/web/templates/user/list.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
{{ tr "Special groups" }}:
5050
{{ tr "Admins" }} <i class="bi-star-fill text-warning"></i>,
5151
{{ tr "Users" }} <i class="bi-person"></i>,
52+
{{ if not .MaskOTP }}
5253
{{ tr "Can use OTP" }} <i class="bi-key"></i>
54+
{{end}}
5355
</figcaption>
5456
</p>
5557

0 commit comments

Comments
 (0)