mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-02 08:10:11 -05:00
🎨 Improve data repo key importing https://github.com/siyuan-note/siyuan/issues/12183
This commit is contained in:
+6
-1
@@ -350,12 +350,17 @@ func importRepoKey(c *gin.Context) {
|
||||
}
|
||||
|
||||
base64Key := arg["key"].(string)
|
||||
if err := model.ImportRepoKey(base64Key); nil != err {
|
||||
retKey, err := model.ImportRepoKey(base64Key)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = fmt.Sprintf(model.Conf.Language(137), err)
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 5000}
|
||||
return
|
||||
}
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"key": retKey,
|
||||
}
|
||||
}
|
||||
|
||||
func initRepoKeyFromPassphrase(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user