Change user password

Hello,

I’ve tried to change user password by this command: tutor k8s exec lms "./manage.py lms changepassword <username>" but it didn’t change (I got confirmation it was changed but in real, not). What is wrong with that? I can’t change it by email because it’s fake account.
Maybe there is a way to change it by form in Django admin?

Hi @kylowrobelek! I don’t know about the changepassword command, but you can use tutor’s very own createuser:

tutor k8s createuser ...

Can you explain a little more how to change password using “tutor k8s createuser”? I have an existing user, user_name is user1. I want to set its password to password1. How can I do it? I have overhangio/openedx:12.1.5 installed on ubuntu 20.04.

Is there a way to change user password through admin User Interface?

Thanks.
Focus

Hi @focus Yes. First, you need to enable the setting using a plugin.

name: change-user-password
version: 1.0.0
patches:
  common-env-features: |
    "ENABLE_CHANGE_USER_PASSWORD_ADMIN": true

Then open the user settings in the admin panel (Home › Authentication and Authorization › Users › some-user) and click the link in this form.

2 Likes

This works. Thanks a lot.