feat: updated password handling logic

This commit is contained in:
Marvin Zhang
2024-08-07 18:05:35 +08:00
parent 1197c05316
commit 6986a10246

View File

@@ -1,6 +1,8 @@
package models
import "time"
import (
"time"
)
type DatabaseV2 struct {
any `collection:"databases"`
@@ -13,7 +15,8 @@ type DatabaseV2 struct {
URI string `json:"uri,omitempty" bson:"uri,omitempty"`
Database string `json:"database,omitempty" bson:"database,omitempty"`
Username string `json:"username,omitempty" bson:"username,omitempty"`
Password string `json:"-,omitempty" bson:"password,omitempty"`
Password string `json:"password,omitempty" bson:"-"`
EncryptedPassword string `json:"-,omitempty" bson:"encrypted_password,omitempty"`
Status string `json:"status" bson:"status"`
Error string `json:"error" bson:"error"`
Active bool `json:"active" bson:"active"`