mirror of https://github.com/cbeuw/Cloak
Remove UID from backup file name to fix #38
This commit is contained in:
parent
8317f447d1
commit
bea21b7166
|
|
@ -1,7 +1,6 @@
|
||||||
package usermanager
|
package usermanager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -308,7 +307,7 @@ func (up *Userpanel) addNewUser(uinfo UserInfo) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (up *Userpanel) delUser(UID []byte) 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue