Hi Amit,

You can use *set_password* method as shown in this example
<https://gist.github.com/raprasad/650ae3cbf193590e5d289e8919b7217b>

Regards,
Gagan Deep

On Tue, Apr 14, 2020 at 12:17 PM Amit Goyal <[email protected]> wrote:

> 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', '
> [email protected]', '$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
>
> --
> 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 [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/0dd190c2-0716-4995-879b-5a8732ed2b3e%40googlegroups.com
> <https://groups.google.com/d/msgid/openwisp/0dd190c2-0716-4995-879b-5a8732ed2b3e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAOX69xoLOc-vziEtg5grb3RSP9X5HWkyoonW6wH8XOTrMxfkHg%40mail.gmail.com.

Reply via email to