Remove UID from backup file name to fix #38

This commit is contained in:
Qian Wang 2019-07-14 17:32:25 +10:00
parent 8317f447d1
commit bea21b7166
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package usermanager
import (
"encoding/base64"
"encoding/binary"
"errors"
"os"
@ -308,7 +307,7 @@ func (up *Userpanel) addNewUser(uinfo UserInfo) error {
}
func (up *Userpanel) delUser(UID []byte) error {
err := up.backupDB(strconv.FormatInt(time.Now().Unix(), 10) + "_pre_del_" + base64.StdEncoding.EncodeToString(UID) + ".bak")
err := up.backupDB(strconv.FormatInt(time.Now().Unix(), 10) + ".bak")
if err != nil {
return err
}