-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indicate user locked state and allow unlocking from users admin #449
Comments
@a-camacho sorry for the delay on this -- it would be ideal to add this to the users management area of the app instead of relying Django's backend so I'm going to treat his issue as a feature request for that (as opposed to documentation). |
Thanks for your reply, good idea ;) |
Somehow all 3 of my users are locked out, which leaves me with no way of getting in to fix. Would be super helpful if there was some type of documentation on how to deal with this. |
@five2seven Unfortunately Baby Buddy doesn't have any built-in tools that will help here 😞 Ideally we should add a management command to create users that can be used in a pinch like this. In the mean time if you can get a shell in your BB application environment you can start a python interactive session and run the following commands: from django.contrib.auth.models import User
user = User.objects.create_user("recovery", password="recovery")
user.is_superuser = True
user.is_staff = True
user.save() This will create a new super user with the username and password |
I followed the above work around in python after connecting to the container and I am getting the following error:
|
@PDXUser if you’re on the latest version that is a management command now you can use to create a new user for recovering. See https://docs.baby-buddy.net/user-guide/managing-users/#creating-a-user-from-the-command-line. |
@cdubz I tried the intructions on this page and it's just erroring out. I need to be able to login but my user accounts are locked. Anything I can do from here? Getting the following error: python manage.py createuser --username recovery --password recovery --is-staff |
@jonezy35 you need to set the |
@cdubz
|
@poldim I think this is worth a separate issues if you want to open one. Looks like axes by default ignores IP address headers: https://django-axes.readthedocs.io/en/latest/4_configuration.html?highlight=X-Forwarded-For#configuring-reverse-proxies |
Hi guys,
No information about how to unlock users after some login attempts.
Finally found the information in Google.
What I did is I downloaded sqlite database, and removed all access_logs from AXES table, and it works.
Could you maybe create a script or at least document it in documentation ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: