How to reset admin password from ruby cli?

How to reset admin password from ruby cli ? Or maybe there are some examples or how to change password from database?

Hi @denisgolius - Just enter the Zammad Rails console and run User.find_by(email: '*your_email*').update!(password: '*your_new_password*') - e.g. User.find_by(email: 'user@example.com').update!(password: 'Zammad-happy_password_!!!123')

Can I see all users from console? How to do this - maybe you know?

User.all =)
I find those command! Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.