mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.56k stars 468 forks source link

There is no way to access the passwords of users created in the Django Admin #139

Open Dan1ell opened 3 years ago

Dan1ell commented 3 years ago

Comes from discussion 122

When making users in the Django admin, the user is created without prompting for a password. The auto-generated password is not displayed anywhere. No email is sent with the password either. There is no way to find out what the password for the user is.

mgogoulos commented 3 years ago

Nice description, this could be handled so that the case where an admin bulk creates accounts can also set the password for them

ilbuonmarcio commented 2 years ago

Any hints on where can I change the user's password? I'm trying to add users via the Django admin panel but the end users can't log on due to unknown password...

mgogoulos commented 2 years ago

if you've set the email settings, reset password should email the user with a link to reset the password.

But since you're an admin, you may set any user password through the Django manage shell, checkout this thread: https://github.com/mediacms-io/mediacms/discussions/81

ilbuonmarcio commented 2 years ago

Isn't there any other way, for a non technical person, to manage passwords via gui? I'm installing it for a friend of mine which is absolutely non techie, unfortunately, and can't explain to him how to use the Django management shell :P

mgogoulos commented 2 years ago

I see, what you're asking for is very valid indeed. I'm pretty sure there has to be a way on Django admin to set a new password!

ilbuonmarcio commented 2 years ago

Any hints in where to touch in the code so that I can implement an integration in the Django administration panel to make it work? Thanks in advance!

masavini commented 2 years ago

I see, what you're asking for is very valid indeed. I'm pretty sure there has to be a way on Django admin to set a new password!

Hi, what about using UserAdmin as suggested here?

@mgogoulos I may test this solution and send a PR, if you want to...

KyleMaas commented 1 year ago

I ran into this problem as well on initial installation in a corporate environment behind a firewall. Would be great to have it fixed.

alfred-stokespace commented 1 year ago

This worked...

  1. active your environment source /home/mediacms.io/bin/activate
  2. from home/mediacms.io/mediacms run python3 manage.py createsuperuser
  3. now create a new admin user, DON"T use the same name
  4. Log in with the new admin user
  5. delete the first admin user
  6. start from step 2, this time use 'admin`
  7. go back in with the new admin and delete the additional one.