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
Clemens Wolff
d0c566c5ab
Add admin button to approve/reject labels
5 years ago
Clemens Wolff
c2fbe77447
Move rootUrl constant to http utils
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
Hironsan
cb1dce916a
Remove unused variables
5 years ago
Hironsan
8713a281d9
Create new app and move codes
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
Guillaume Claret
3cfa22f5f3
Add a tooltip under each annotation to name them
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
Guillaume Claret
a1565a212f
Use map to get the document annotations
5 years ago
Guillaume Claret
5bc61192ff
Use find to get the annotation of a label
5 years ago
Guillim
a6ea2a772a
coding style fixes
5 years ago
Guillim
80d041236f
coding style
fixing the coding style issues as reported by reviewer
5 years ago
Guillim
b68f11525f
we fix some coding style issues following the PR
5 years ago
Guillim
3038639092
we add some lines for emailing possibilities
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
d7ccf5789a
Env variables:
We want to allow the admin to choose wether the users can signin in by
themselves, or if only the admin can do it. We will later implement it
in the python code
Here we have to modify
- docker-compose.yml : add the env ALLOW_SIGNUP
Note: I am not sure if it's True or "True"
Note: we could have put it inside the Dockerfile instead of
docker-compose, it doesn't matter.
- settings.py : Here we make the env variable available to the python
app
- app.json : that's for the heroku deployment. we simply describe to
heroku that we have an env variable
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
Guillim
1547a735c4
we add some columns to the admin page
We add some columns to the admin page in order to have a better overview of the table's elements.
5 years ago
Clemens Wolff
b5e2f2b538
Only import required objects
5 years ago
Clemens Wolff
7151015a49
Exclude unused hljs languages from bundle
5 years ago
Clemens Wolff
76152b7cff
Move mixins to own modules
5 years ago
Clemens Wolff
e1ae68c5df
Transparently decode file
5 years ago
Clemens Wolff
22285277f0
Remove outdated comment
5 years ago
Clemens Wolff
c495b141cc
Ensure data pagination is covered in tests
5 years ago
Clemens Wolff
44de1824af
Make import batch size configurable via env
5 years ago
Clemens Wolff
bbc68ffa00
Add option to randomize document order per user
5 years ago
Vinay Augustine
72e57967b0
Fix test broken by progress API change
5 years ago
Vinay Augustine
79dd516cc5
Make progress bar only show annotations for the current user.
5 years ago
Vinay Augustine
590a28bc8b
Make DocumentFilter show results for the logged in user
5 years ago
Clemens Wolff
d108da9063
Make menu responsive
5 years ago
Clemens Wolff
7c3116f150
Fix CoNLL parsing with trailing newlines
5 years ago
Clemens Wolff
d520ff7724
Embed django-cloud-browser in data import page
5 years ago