Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
django-email-accounts
Advanced tools
Django Email Accounts is a Django app for user management with email-based authentication. It provides a customizable User model and registration view for handling user registration and authentication using email and password.
Install the package using pip:
pip install django-email-accounts
'email_accounts'
to the INSTALLED_APPS
list in your Django project's settings.py
file:INSTALLED_APPS = [
...
'email_accounts',
...
]
settings.py
file:AUTH_USER_MODEL = 'email_accounts.User'
urls.py
file to include the email-accounts URLs:from django.urls import path, include
urlpatterns = [
...
path('accounts/', include('email_accounts.urls')),
...
]
Note : If you want to use the restfull api instead, then here is a propre update for urls.py
:
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from email_accounts.views import UserViewSet
router = DefaultRouter()
router.register('users', UserViewSet)
urlpatterns = [
...
path('api/', include(router.urls)),
path('api/accounts/', include('email_accounts.api_urls')),
...
]
python manage.py makemigrations email_accounts
python manage.py migrate
Note : If you want custom authentication templates, then, in your templates folder, create a email_accounts
subdirectory in templates
directory and create all authentication templates on it like this.
├── templates
│ └── email_accounts
│ ├── login.html
│ ├── register.html
│ └── password
│ ├── change
│ ├── ├── 1.html
│ ├── └── 2.html
│ └── reset
│ ├── 1.html
│ ├── 2.html
│ ├── 3.html
│ └── 4.html
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.
To contribute to the project, follow these steps:
Please ensure that your code adheres to the project's coding conventions and includes appropriate tests. Also, provide a clear description of the changes you have made in the pull request.
Thank you for your contributions!
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.
FAQs
A Django app for user management with email-based authentication.
We found that django-email-accounts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.