This commit is contained in:
@ -35,9 +35,9 @@ type Config struct {
|
||||
DbSuffix string `json:"db_suffix,omitempty"`
|
||||
|
||||
// Inner
|
||||
memoryPassword string `json:"memory_password,omitempty"`
|
||||
additionalPasswords []string `json:"additional_passwords,omitempty"`
|
||||
me *Identity `json:"me,omitempty"`
|
||||
memoryPassword string
|
||||
additionalPasswords []string
|
||||
me *Identity
|
||||
}
|
||||
|
||||
var instance *Config
|
||||
@ -82,6 +82,14 @@ func (c *Config) GetMemPass() string {
|
||||
return c.memoryPassword
|
||||
}
|
||||
|
||||
func (c *Config) GetIdentity() *Identity {
|
||||
return c.me
|
||||
}
|
||||
|
||||
func (c *Config) SetIdentity(id *Identity) {
|
||||
c.me = id
|
||||
}
|
||||
|
||||
func (c *Config) SaveIdentity() error {
|
||||
return c.me.Save()
|
||||
}
|
||||
|
Reference in New Issue
Block a user