Comments (2)
Hi @staubertTim,
You can add additional validators here, assuming you're building LS from source:
label-studio/label_studio/core/settings/base.py
Lines 291 to 298 in ec26634
I would have thought testtest
would be blocked by CommonPasswordValidator, but not sure on that.
from label-studio.
Hi @jombooth,
thank you for taking the time to answer!
That's what I thought as well so I went ahead and changed those - WITH NO EFFECT.
I'm afraid these Django Validators are not even used. You can verify that by using these Validators and then building from source:
AUTH_PASSWORD_VALIDATORS = [
{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'OPTIONS': {'min_length': 10},
},
{'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator'},
{'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'},
]
Normally Label Studio Passwords need to be 8 characters long and I would expect that they now need to be ten characters long - which is NOT the case, although this parameter is build in by default into the MinimumLengthValidator.
I then traced error messages from the frontend and realized that password checking is done in label_studio/users/forms.py
in the class UserSignupForm and the clean_password method where the only applied check is:
if len(password) < PASS_MIN_LENGTH:
raise forms.ValidationError(PASS_LENGTH_ERROR)
Once I changed PASS_MIN_LENGTH to 10 I could actually only use passwords that are ten characters long.
I will now try to monkey-patch this method in my docker build. But still I think it is suboptimal to have these Django validators and not apply them (if I am not mistaken).
Is this intended or a bug? Happy to hear your thoughts.
from label-studio.
Related Issues (20)
- TextArea (displayMode="region-list") regarding ID error reporting
- Required Field for Labels
- Prediction score column is empty
- Easily move databases
- When the amount of data is large, exporting data will be very slow.
- Unable to export tasks as VOC which were created using api HOT 2
- Mouse cursor still visible when crosshair is enabled
- A way to easily verify label assignment HOT 2
- In the project overview, add a column type to see the number of labels in annotations and predictions HOT 5
- Integration with existing Postgres database HOT 1
- Syncing External Storage lead to Gateway Timeout HOT 6
- heroku integration failing because of outdate version of postgresql (13)
- My COCO dataset JSON file contains empty list of segmentations...
- Brush Mask for semantic segmentation Export to COCO HOT 4
- Ellipse Annotations Missing After Export and Training HOT 1
- UI for recording audio dataset
- Large file import error HOT 2
- Bounding boxes are off center on import (custom implementation) + a script and work flow that works for me that I would like to share HOT 1
- Videos in AWS do not load in Google Chrome or Microsoft Edge HOT 1
- Button "start training" sent event "PROJECT_UPDATED" rather than "START_TRAINING" to ml backend HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from label-studio.