Greenlight: reset user password

Created on 17 Mar 2020  路  8Comments  路  Source: bigbluebutton/greenlight

I've configured Bigbluebuttong with greenlight but with out email server for now. I need to reset user password with im unable to find any option from admin panel or is there any way to do it via command line .

One more thing How do I change greenlight titlte on tab "BigBlueButton" to my own name. Looking forward to your kind response.

Regards

Most helpful comment

Hi @tehseensagar,

To reset a user's password, you can ssh into the docker container and do it manually through the Rails console.
1- docker exec -it greenlight-v2 bash
2-bundle exec rails c
3- User.find_by(email: "<email of user to reset>").update_attribute(:password,"<new password>")

To make any custom changes, you need to clone the git repo and build your own image.

If you installed using the "Install" instructions or through the bbb-install script, you'll need to follow these changes to make the switch: http://docs.bigbluebutton.org/greenlight/gl-install.html#switching-from-install-to-customize

Once you've made the switch, you can see in this doc how to change any string: http://docs.bigbluebutton.org/greenlight/gl-customize.html#customizing-the-landing-page

All 8 comments

Hi @tehseensagar,

To reset a user's password, you can ssh into the docker container and do it manually through the Rails console.
1- docker exec -it greenlight-v2 bash
2-bundle exec rails c
3- User.find_by(email: "<email of user to reset>").update_attribute(:password,"<new password>")

To make any custom changes, you need to clone the git repo and build your own image.

If you installed using the "Install" instructions or through the bbb-install script, you'll need to follow these changes to make the switch: http://docs.bigbluebutton.org/greenlight/gl-install.html#switching-from-install-to-customize

Once you've made the switch, you can see in this doc how to change any string: http://docs.bigbluebutton.org/greenlight/gl-customize.html#customizing-the-landing-page

Thanks @farhatahmad

I've done almost many changes by review the source and variables. I will share the info here as well soon I finish with it. I've found the page where I need to make change for title: but Im getting some kind of variable missing error ,

<span class="translation_missing" title="translation missing: en.my-title">my-title</span>
<meta property="og:title" content="<span class=" translation_missing"="" title="translation missing: en.my-title, locale: en">

On top of my tab/title page.

Page I did edit:
views/layouts/application.html.erb
Below is the code
<title><%= t("my-title") %></title> <meta property="og:title" content="<%= t("my-title", locale: :en) %>" />

But when I turned back to default from my-title to bigbluebutton error is gone.

Getting error on password reset

User.find_by(email: "<[email protected]>").update_attribute(:password,"<test123>") Traceback (most recent call last): 1: from (irb):1 NoMethodError (undefined methodupdate_attribute' for nil:NilClass)
`

Regagrds

Make sure you follow the document that I sent you. It gives you a step by step of how to change a string. http://docs.bigbluebutton.org/greenlight/gl-customize.html#customizing-the-landing-page

As for the user, dont include the <``> in the email and password

@farhatahmad , I've made some chages in html tags are as follow
<!--<title><%= t("bigbluebutton") %></title> -->
<title>My-Title</title>
<!--<meta property="og:title" content="<%= t("bigbluebutton", locale: :en) %>" /> -->
<meta property="og:title" content="My-Title"/>

That's solve my problem :) .

Regards

1- docker exec -it greenlight-v2 bash
2-bundle exec rails c
3- User.find_by(email: "<email of user to reset>").update_attribute(:password,"<new password>")

I try this and greenlight say have not verification need verivication BUT at admin panel we do not see the user.

How we activate this user? Regards

@farhatahmad Wouldn't that mean passwords are saved in plaintext?

Nope. Rails automatically takes care of all the password hashing in the background. You check by running:

User.find_by(email: "<email of user to reset>").password

@farhatahmad I only see a field called password_digest in the record. So how does updating the password help? Or is it a function that runs to update the password_digest?

Was this page helpful?
0 / 5 - 0 ratings