Remove temporary patch for generating UUID in Identity.Save() function
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
31df45e771
commit
385c5f3298
@ -181,10 +181,6 @@ func (id *Identity) Save() error {
|
|||||||
if GetConfig().IdentityFile == "" {
|
if GetConfig().IdentityFile == "" {
|
||||||
return errors.New("identity filename empty")
|
return errors.New("identity filename empty")
|
||||||
}
|
}
|
||||||
//! temp patch
|
|
||||||
if id.Uuid == "" {
|
|
||||||
id.Uuid = uuid.New().String()
|
|
||||||
}
|
|
||||||
b, _ := json.Marshal(id)
|
b, _ := json.Marshal(id)
|
||||||
armor, err := helper.EncryptMessageWithPassword([]byte(GetConfig().memoryPassword), string(b))
|
armor, err := helper.EncryptMessageWithPassword([]byte(GetConfig().memoryPassword), string(b))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user