tiborhari / django-admin-reset Goto Github PK
View Code? Open in Web Editor NEWPassword reset for the Django admin interface
License: BSD 3-Clause "New" or "Revised" License
Password reset for the Django admin interface
License: BSD 3-Clause "New" or "Revised" License
Hi!
PASSWORD_RESET_TIMEOUT_DAYS has been deprecated a while ago and has been removed in Django 4.
However, it is still listed in the instructions of this app.
The appropriate setting is now PASSWORD_RESET_TIMEOUT which is in seconds
Also, since I have set PASSWORD_RESET_TIMEOUT to 604800 in my app (which is 7 days), the password reset page that shows the reset link for a user in the admin says: This link can be sent [...] and it expires in 604800 days.
Can we make that either '604800 seconds' or better yet '7 days' ?
By the way, if I still try to use PASSWORD_RESET_TIMEOUT_DAYS, that settings seems to be ignored because then it says " and it expires in 259200 days." (which is the default 3 days instead of 604800 which would be 7 days)
First, thanks for this library. It's the only solution that worked for me with Django 2.0 and a custom admin_site. The instructions at https://docs.djangoproject.com/en/2.0/ref/contrib/admin/#adding-a-password-reset-feature did not work for me due to namespacing issues.
But, when using django-admin-reset and finishing the reset flow at /admin/auth/user/password_reset_complete/done/
the Login link goes to /accounts/login/
. With my single page app, I'm only having Django render the /admin/
urls, so this caused some confusion. I was able to add a redirect to catch it, but it seems like the final login link should be namespaced back to the admin site, not the generic account login page.
I'm getting this error sometimes upon trying to save a new password, when I visit the password reset link. Sometimes several times in a row. So I won't get any error when clicking the password reset link, I'll just see the password change form like expected, and then after filling out the new password and hitting the save button, I'll get this error saying the link is invalid, probably because it has been used before (when I've just obtained the link and haven't shared it with anyone).
What's going on there? Any idea?
It says (in dutch):
Wachtwoordherinitialisatie mislukt
De link voor het herstellen van het wachtwoord is ongeldig, waarschijnlijk omdat de link al eens is gebruikt. Vraag opnieuw een wachtwoord aan.
Django 3.1 has been released.
Install requirements should be changed
Small typo :)
Currently the link is https://github/tiborhari/django-admin-reset/
Should be https://github.com/tiborhari/django-admin-reset/
Currently if e-mail is used as the username field, package will not work.
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.