Giter VIP home page Giter VIP logo

django-admin-reset's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-admin-reset's Issues

PASSWORD_RESET_TIMEOUT_DAYS is deprecated

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)

password_reset_complete login link goes to /accounts/login not /admin

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.

Error: link invalid, while trying to save the new password

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.