add client extl id and fix setpasswd

This commit is contained in:
shoopea
2021-11-10 14:43:55 +08:00
parent bcc20d3402
commit b43caf02a9
3 changed files with 16 additions and 7 deletions

2
bot.go
View File

@@ -210,7 +210,7 @@ func botPasswd(m *tb.Message) {
err := bot.bot.Delete(m)
logErrorDebug(err, "botPasswd : Delete")
srv.SetPasswd(co.CompanyID, cc.Passwd)
srv.SetPasswd(co.CompanyExtlID, cc.Passwd)
bot.SendUser(int64(m.Sender.ID), fmt.Sprintf("Passwd set to \"%s\"", cc.Passwd))