Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hiboo
Commits
e3d6fe50
Verified
Commit
e3d6fe50
authored
3 years ago
by
ornanovitch
Browse files
Options
Downloads
Patches
Plain Diff
goodlooking 2FA page
parent
89d7330f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!31
Resolve "Support du 2FA TOTP"
Pipeline
#6613
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hiboo/account/templates/account_totp.html
+34
-10
34 additions, 10 deletions
hiboo/account/templates/account_totp.html
with
34 additions
and
10 deletions
hiboo/account/templates/account_totp.html
+
34
−
10
View file @
e3d6fe50
{% extends "base.html" %}
{% extends "base.html" %}
{% block title %}{% trans %}Two-factor authentication with Time-based One-Time Password (TOTP){% endtrans %}{% endblock %}
{% block title %} {% trans %}Two-factor authentication{% endtrans %} {% endblock %}
{% block subtitle %}{% trans %}with Time-based One-Time Password (TOTP){% endtrans %}{% endblock %}
{% block content %}
{% block content %}
{% if infos == {} %}
{% if infos == {} %}
<p>
{% trans %}Two-factor authentication with Time-based One-Time Passowrd is not setup.{% endtrans %}
</p>
<div
class=
"col"
>
<blockquote
class=
"quote-warning"
>
<h5>
{% trans %}Not configured{% endtrans %}
</h5>
<p>
{% trans %}Two-factor authentication with Time-based One-Time Passowrd is not setup.{% endtrans %}
<br>
{% trans %}Click on "Setup 2FA" to get started.{% endtrans %}
</p>
</blockquote>
</div>
{% else %}
{% else %}
<p>
{% trans %}Scan this QR code or use text informations{% endtrans %}
</p>
<img
src=
"data:image/png;base64,{{ infos.qr }}"
width=
300
height=
300
>
<blockquote
class=
"quote-info"
>
<pre>
<h5>
{% trans %}Howto{% endtrans %}
</h5>
{% trans %}Secret key:{% endtrans %}
<code>
{{ infos.key }}
</code>
<p>
{% trans %}Scan this QR code or use text informations{% endtrans %}
</p>
{% trans %}Name:{% endtrans %}
<code>
{{ infos.name }}
</code>
</blockquote>
{% trans %}Issuer:{% endtrans %}
<code>
{{ infos.issuer }}
</code>
<div
class=
"row"
>
</pre>
<div
class=
"col-md-6 col text-center"
>
<img
src=
"data:image/png;base64,{{ infos.qr }}"
class=
"rounded mb-4"
width=
250
height=
250
>
</div>
<div
class=
"col-md-6 col"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
{% trans %}Secret key: {% endtrans %}
<code>
{{ infos.key }}
</code></li>
<li
class=
"list-group-item"
>
{% trans %}Name: {% endtrans %}
<code>
{{ infos.name }}
</code></li>
<li
class=
"list-group-item"
>
{% trans %}Issuer: {% endtrans %}
<code>
{{ infos.issuer }}
</code></li>
</ul>
</div>
</div>
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
{% block actions %}
{% block actions %}
{% if infos == {} %}
{% if infos == {} %}
<a
href=
"{{ url_for("
.
totp_setup
")
}}"
class=
"btn btn-info"
>
{% trans %}Setup 2FA{% endtrans %}
</a>
<a
href=
"{{ url_for("
.
totp_setup
")
}}"
class=
"btn btn-info"
>
{% trans %}Setup 2FA{% endtrans %}
</a>
{% else %}
{% else %}
<a
href=
"{{ url_for("
.
totp_delete
")
}}"
class=
"btn btn-info"
>
{% trans %}Delete 2FA{% endtrans %}
</a>
<a
href=
"{{ url_for("
.
totp_delete
")
}}"
class=
"btn btn-warning"
>
{% trans %}Delete 2FA{% endtrans %}
</a>
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment