Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
AlekSIS®
Official
AlekSIS-Core
Commits
625dd5ea
Verified
Commit
625dd5ea
authored
4 years ago
by
Tom Teichler
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 160-versioning-of-models
parents
50a6bfc4
7d9a57fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/templates/two_factor/core/login.html
+30
-21
30 additions, 21 deletions
aleksis/core/templates/two_factor/core/login.html
tox.ini
+5
-2
5 additions, 2 deletions
tox.ini
with
35 additions
and
23 deletions
aleksis/core/templates/two_factor/core/login.html
+
30
−
21
View file @
625dd5ea
...
...
@@ -9,29 +9,38 @@
{% block content %}
<h4>
{% trans "Login" %}
</h4>
<div
class=
"alert primary"
>
<p>
<i
class=
"material-icons left"
>
info
</i>
{% if wizard.steps.current == "auth" and user.is_authenticated %}
<div
class=
"alert warning"
>
<p>
<i
class=
"material-icons left"
>
warning
</i>
{% blocktrans %}You have no permission to view this page. Please login with an other account.{% endblocktrans %}
</p>
</div>
{% else %}
<div
class=
"alert primary"
>
<p>
<i
class=
"material-icons left"
>
info
</i>
{% if wizard.steps.current == 'auth' %}
{% blocktrans %}Enter your credentials.{% endblocktrans %}
{% elif wizard.steps.current == 'token' %}
{% if device.method == 'call' %}
{% blocktrans %}We are calling your phone right now, please enter the
digits you hear.{% endblocktrans %}
{% elif device.method == 'sms' %}
{% blocktrans %}We sent you a text message, please enter the tokens we
sent.{% endblocktrans %}
{% else %}
{% blocktrans %}Please enter the tokens generated by your token
generator.{% endblocktrans %}
{% if wizard.steps.current == 'auth' %}
{% blocktrans %}Please login to see this page.{% endblocktrans %}
{% elif wizard.steps.current == 'token' %}
{% if device.method == 'call' %}
{% blocktrans %}We are calling your phone right now, please enter the
digits you hear.{% endblocktrans %}
{% elif device.method == 'sms' %}
{% blocktrans %}We sent you a text message, please enter the tokens we
sent.{% endblocktrans %}
{% else %}
{% blocktrans %}Please enter the tokens generated by your token
generator.{% endblocktrans %}
{% endif %}
{% elif wizard.steps.current == 'backup' %}
{% blocktrans %}Use this form for entering backup tokens for logging in.
These tokens have been generated for you to print and keep safe. Please
enter one of these backup tokens to login to your account.{% endblocktrans %}
{% endif %}
{% elif wizard.steps.current == 'backup' %}
{% blocktrans %}Use this form for entering backup tokens for logging in.
These tokens have been generated for you to print and keep safe. Please
enter one of these backup tokens to login to your account.{% endblocktrans %}
{% endif %}
</div>
</div>
{% endif %}
<form
action=
""
method=
"post"
>
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
5
−
2
View file @
625dd5ea
...
...
@@ -7,9 +7,12 @@ envlist = py37,py38
whitelist_externals
=
poetry
skip_install
=
true
envdir
=
{toxworkdir}/globalenv
commands_pre
=
./dev.sh install-all
commands_pre
=
-
sudo
apt
update
-
sudo
apt
install
python3-ldap
libldap2-dev
libssl-dev
libsasl2-dev
python3.7-dev
-y
-
./dev.sh
install-all
commands
=
poetry
run
pytest
--cov
=
. {posargs} aleksis/ apps/official/
-
poetry
run
pytest
--cov
=
. {posargs} aleksis/ apps/official/
[testenv:selenium]
setenv
=
...
...
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