openwisp Controller UI's user password change

12 views
Skip to first unread message

Amit Goyal

unread,
Apr 14, 2020, 2:47:05 AM4/14/20
to OpenWISP
Hello Everyone 

Can we change OpenWisp Controller UI's user  password by script ? 

I know we can create superuser by following command .  

echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('$OPENWISP_ADMIN_USER', 'ad...@test.com', '$OPENWISP_ADMIN_PASS')" | python3 /home/openwisp/manage.py shell

Is something same solution or any scripts possible which can be used for changing password of particular user ?

Thanks In Advance! 

Regards
Amit

Gagan Deep

unread,
Apr 14, 2020, 9:38:47 AM4/14/20
to open...@googlegroups.com
Hi Amit,

You can use set_password method as shown in this example

Regards,
Gagan Deep

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/0dd190c2-0716-4995-879b-5a8732ed2b3e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages