This commit is contained in:
parent
db1f2d29a9
commit
6318f50b59
|
@ -108,6 +108,12 @@ func (u *User) Save() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if "" == string(bytes) {
|
||||
logger.Error("Truncated user [" + u.Name + "]")
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
if err = ioutil.WriteFile("conf/users/"+u.Name+".json", bytes, 0644); nil != err {
|
||||
logger.Error(err)
|
||||
|
||||
|
|
Loading…
Reference in New Issue