fix reset password api

This commit is contained in:
wangchuxiao
2022-02-21 19:12:51 +08:00
parent c09ebc146b
commit dfdb952e2b
3 changed files with 10 additions and 6 deletions
-2
View File
@@ -3,7 +3,6 @@ package db
import (
"Open_IM/pkg/common/constant"
log2 "Open_IM/pkg/common/log"
"fmt"
"github.com/garyburd/redigo/redis"
)
@@ -47,7 +46,6 @@ func (d *DataBases) SetAccountCode(account string, code, ttl int) (err error) {
}
func (d *DataBases) GetAccountCode(account string) (string, error) {
key := AccountTempCode + account
fmt.Println(key)
return redis.String(d.Exec("GET", key))
}