Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
365477ff
Commit
365477ff
authored
2 months ago
by
Dennis ASAMOAH
Browse files
Options
Downloads
Patches
Plain Diff
improve longin template
parent
6ea3636e
No related branches found
No related tags found
1 merge request
!466
Add webauth
Pipeline
#99384
failed
2 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/templates/two_factor/core/login.html
+13
-5
13 additions, 5 deletions
smash/web/templates/two_factor/core/login.html
with
13 additions
and
5 deletions
smash/web/templates/two_factor/core/login.html
+
13
−
5
View file @
365477ff
...
...
@@ -11,6 +11,12 @@
{% elif device.method == 'sms' %}
<p
class=
"login-box-msg"
>
{% blocktrans %}We sent you a text message, please enter the tokens we
sent.{% endblocktrans %}
</p>
{% elif device.public_id %}
<p
class=
"login-box-msg"
>
{% blocktrans %}Please insert your YubiKey and touch it to authenticate.
{% endblocktrans %}
</p>
{% elif device.public_key %}
<p
class=
"login-box-msg"
>
{% blocktrans %}Please verify your identity using your security key or biometric device.
{% endblocktrans %}
</p>
{% else %}
<p
class=
"login-box-msg"
>
{% blocktrans %}Please enter the tokens generated by your token
generator.{% endblocktrans %}
</p>
...
...
@@ -28,13 +34,15 @@
<div
style=
"margin-left: -9999px"
><input
type=
"submit"
value=
""
/></div>
{% if other_devices %}
<p>
{% trans "Or, alternatively, use one of your backup phones:" %}
</p>
<p>
{% trans "Or, alternatively, use one of your backup phones:" %}
</p>
<p>
{% for other in other_devices %}
<button
name=
"challenge_device"
value=
"{{ other.persistent_id }}"
class=
"btn btn-default btn-block"
type=
"submit"
>
{{ other|as_action }}
</button>
{% if other.method == 'call' or other.method == 'sms' %}
<button
name=
"challenge_device"
value=
"{{ other.persistent_id }}"
class=
"btn btn-default btn-block"
type=
"submit"
>
{{ other|as_action }}
</button>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if backup_tokens %}
...
...
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