alexey.shkarupin
e1ad285edd
fix tests
5 years ago
alexey.shkarupin
4c83a8017e
Fixes #309 read settings properly
5 years ago
Guillim
72a0e04742
We fix the test for the authentification: reusing the setenv function defined in the api package in order to set the proper environment for the test
5 years ago
Guillim
a713dd136a
Following Hironsan review, did some change.
5 years ago
Guillim
e6702f23f4
test new assertEqual instead of assertRedirect which cause travis CI to fail for some webpack obscur reason.
5 years ago
Guillim
a52d13252e
Small fix in order to follow Circle CI instruction
5 years ago
Guillim
d59a512b83
codacy fix (unused import)
5 years ago
Guillim
8e6d16e6cf
we set up all tests required to reach almost 100% of code coverage for the authentification part
5 years ago
Guillim
0df433fd1e
changing the wording, and making sure we add specific simple SPAN tags to better test our code
5 years ago
Guillim
aa9466a592
missing import
5 years ago
Guillim
736417fb04
typo fix
5 years ago
Guillim
de1ec07b09
typo fixing:
The TestSite Team -> The Doccano Team
5 years ago
Guillim
9ba9321f63
small typo about the filter:
before it was printing a class "[] input"
instead of "input"
5 years ago
Guillim
6c248bfd58
PEP8 fixes
5 years ago
Guillim
924068c5dd
we set up the first test for authentification
5 years ago
Guillim
0c3e5f535a
small typo modif or -> and
5 years ago
Guillim
d8a132d3c0
we add a verification that the email is already configured to avoid an error while creating a user and sending a confirmation email
5 years ago
Guillim
04ee45aeff
typo modif
5 years ago
Guillim
7f28808f66
We try another way to specify the backend to the login function. Even though the original code mentions it is possible : https://docs.djangoproject.com/en/2.2/_modules/django/contrib/auth/#login
5 years ago
Guillim
57f8097b80
it's a small fix: when there was an error in the signup form, the redirection to signup was without allow_signup, wich triggered a weird "you can't singup" message.
5 years ago
Guillim
a6ea2a772a
coding style fixes
5 years ago
Guillim
b68f11525f
we fix some coding style issues following the PR
5 years ago
Guillim
01ba541ce9
fixing trailing spaces (PEP8 requirement)
5 years ago
Guillim
3e7234e2a6
We go on with authentification:
- we set up python restriction related to the environment variable
"allow_signup"
- we clean a bit html code in base_auth.html
- we allow switch between signin and signup
5 years ago
Guillim
e1e82a06ad
We finally make URLs available to the whole application
5 years ago
Guillim
6551e81be8
We create the funciton that validates an email address checking if the token if correct.
5 years ago
Guillim
1e65212d22
We create the Signup view, one of the most important. It is important to keep in mind the difference of action between the GET and the POST.
5 years ago
Guillim
f247c19aeb
CLassic mandatory files for a python package
5 years ago
Guillim
9caf7751fa
Small trick: we add a filter to the Django templating in order to add some class to our form inputs
5 years ago
Guillim
08c66e8103
Creation of all templates for account creation through /signup
5 years ago
Guillim
f29bf9b99d
creation of all templates for reseting password
5 years ago