storage get messages + config improve + tests
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:
@ -136,6 +136,9 @@ func LoadIdentity(filename string, password string) (*Identity, error) {
|
||||
}
|
||||
|
||||
func (id *Identity) Save() error {
|
||||
if GetConfig().IdentityFile == "" {
|
||||
return errors.New("identity filename empty")
|
||||
}
|
||||
b, _ := json.Marshal(id)
|
||||
armor, err := helper.EncryptMessageWithPassword([]byte(GetConfig().memoryPassword), string(b))
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user