Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
8111fcd3
Unverified
Commit
8111fcd3
authored
2 years ago
by
Saurabh Kumar
Browse files
Options
Downloads
Patches
Plain Diff
update login page with backup
parent
d2a8403f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hypha/apply/users/templates/users/login.html
+4
-4
4 additions, 4 deletions
hypha/apply/users/templates/users/login.html
with
4 additions
and
4 deletions
hypha/apply/users/templates/users/login.html
+
4
−
4
View file @
8111fcd3
...
@@ -20,9 +20,8 @@
...
@@ -20,9 +20,8 @@
<p>
{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed %}Please enter the 6-digit verification code generated by your Authenticator App.{% endblocktrans %}
</p>
{% endif %}
{% endif %}
{% elif wizard.steps.current == 'backup' %}
{% elif wizard.steps.current == 'backup' %}
<p>
{% blocktrans trimmed %}Use this form for entering backup tokens for logging in.
<p>
{% blocktrans trimmed %}Please enter one of the backup codes to login to your account.
These tokens have been generated for you to print and keep safe. Please
Those codes were generated for you during 2FA setup to print or keep safe in a password manager.{% endblocktrans %}
</p>
enter one of these backup tokens to login to your account.{% endblocktrans %}
</p>
{% endif %}
{% endif %}
<form
class=
"form form--with-p-tags form--user-login"
method=
"post"
>
<form
class=
"form form--with-p-tags form--user-login"
method=
"post"
>
...
@@ -43,7 +42,6 @@
...
@@ -43,7 +42,6 @@
{# hidden submit button to enable [enter] key #}
{# hidden submit button to enable [enter] key #}
<div
style=
"margin-left: -9999px"
><input
type=
"submit"
value=
""
/></div>
<div
style=
"margin-left: -9999px"
><input
type=
"submit"
value=
""
/></div>
<script>
document
.
querySelector
(
"
label[for=id_token-otp_token]
"
).
textContent
=
"
{% trans 'Verification Code' %}:
"
;
</script>
{% if other_devices %}
{% 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>
...
@@ -73,5 +71,7 @@
...
@@ -73,5 +71,7 @@
<a
class=
"link link--button link--button-long-text"
href=
"{% url "
social:begin
"
"
google-oauth2
"
%}{%
if
next
%}?
next=
{{
next
}}{%
endif
%}"
>
{% blocktrans %}Log in with your {{ ORG_SHORT_NAME }} email{% endblocktrans %}
</a>
<a
class=
"link link--button link--button-long-text"
href=
"{% url "
social:begin
"
"
google-oauth2
"
%}{%
if
next
%}?
next=
{{
next
}}{%
endif
%}"
>
{% blocktrans %}Log in with your {{ ORG_SHORT_NAME }} email{% endblocktrans %}
</a>
</div>
</div>
{% endif %}
{% endif %}
<script>
document
.
querySelector
(
"
label[for=id_token-otp_token]
"
).
textContent
=
"
{% trans 'Verification Code' %}:
"
;
</script>
<script>
document
.
querySelector
(
"
label[for=id_backup-otp_token]
"
).
textContent
=
"
{% trans 'Backup Code' %}:
"
;
</script>
</div>
</div>
{% 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