mischback / django-auth_enhanced Goto Github PK
View Code? Open in Web Editor NEWEnhances and completes Django's built-in authentication functionality.
License: MIT License
Enhances and completes Django's built-in authentication functionality.
License: MIT License
Django does provide all necessary functions to handle login
and logout
, but does not really make the usable.
login
and logout
login
and logout
In #9 the setting 'DAE_ADMIN_SIGNUP_NOTIFICATION' was introduced and implemented.
While its documentation already mentions, that this setting should consist of valid users of the respective Django project, this is not enforced by any check.
Reason: While the checks are performed using Django's Check Framework, the database is not yet available.
When is this setting used? The setting is used during the process of user-registration. In order to not hit the database to fetch the superusers email addresses, this setting is used.
Possible workaround: Creating a custom, app-specific management command. This command could be used to verify, that the specified usernames are valid users of the Django project, that their respective mail addresses are indeed legit (and verified) and that they have sufficient permissions to actually manage User-objects.
Substitute the default Admin Class for User objects
Brainstorming of features
User
-model is connected to UserEnhancement
Make the password changeable by the user
Make password resettable
While django-auth_enhanced is designed to work with Django's default User-model, it should work with custom user models aswell, if some minimum requirements are met.
This issue is about implementing enough abstraction to work with these custom models, aswell as checking minimum requirements of these models.
username
(use get_user_model().USERNAME_FIELD
)email
(use get_user_model().EMAIL_FIELD
)is_active
, is_staff
, is_superuser
The app should be installable using Pythons package management.
Some of Django's default settings should be adjusted, when using django-auth_enhanced. Write corresponding checks (level: Warn)
As of this writing (currently: Django 2.0.4), while rendering forms with Django, the file https://github.com/django/django/blob/2.0.4/django/forms/templates/django/forms/widgets/input.html is used. It appends a trailing slash to input-widgets, which is not fully html5-compliant.
However, in master
, this issue is already fixed and should be included NLT Django 2.1.0.
Currently, the form-widgets are included in the html-templates manually, meaning that they are hardcoded. Of course, this has to be changed to return to {{ form.field }}
again.
Implement all necessary functions to register new users.
email
-field is not unique
(see: https://github.com/django/django/blob/master/django/contrib/auth/models.py#L288)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.