mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Fix password resetting
This commit is contained in:
parent
85846346d1
commit
3cac57e0f3
3 changed files with 5 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue