Fix password resetting

This commit is contained in:
Bohdan Horbeshko 2025-04-17 19:22:02 -04:00
parent 85846346d1
commit 3cac57e0f3
3 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@
COMMIT := $(shell git rev-parse --short HEAD)
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
VERSION := "v1.10.2"
VERSION := "v1.11.0"
MAKEOPTS := "-j4"
all:

View file

@ -16,7 +16,7 @@ import (
goxmpp "gosrc.io/xmpp"
)
var version string = "1.10.2"
var version string = "1.11.0"
var commit string
var sm *goxmpp.StreamManager

View file

@ -457,9 +457,10 @@ func (c *Client) ProcessTransportCommand(cmdline string, resource string) (strin
var oldPassword string
var newPassword string
// 0 or 1 argument is ignored and the password is reset
if len(args) > 1 {
if len(args) > 0 {
oldPassword = args[0]
}
if len(args) > 1 {
newPassword = args[1]
}
_, err := c.client.SetPassword(&client.SetPasswordRequest{