1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-17 09:37:02 +00:00

Use a default password hash

This commit is contained in:
teru
2016-08-11 17:42:17 +09:00
parent 2ec3e444a3
commit 2bcfc6b0fe
2 changed files with 4 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ func (c *DomainAddCommand) Run(args []string) int {
return 1
}
user, err := mailfull.NewUser("postmaster", "", nil)
user, err := mailfull.NewUser("postmaster", mailfull.NeverMatchHashedPassword, nil)
if err != nil {
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
return 1

View File

@@ -18,3 +18,6 @@ const (
FileNameDbForwards = "forwards"
FileNameDbPasswords = "vpasswd"
)
// NeverMatchHashedPassword is hash string that is never match with any password.
const NeverMatchHashedPassword = "{SSHA}!!"