From bf9df9fc9fdf7187e2410725dad86582d1e2ba09 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Tue, 6 Mar 2018 01:06:47 +0000 Subject: [PATCH] Add the wildcard field to accounts --- DESIGN.md | 1 + internal/store/account.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/DESIGN.md b/DESIGN.md index e96a68e..0627116 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -36,4 +36,5 @@ following, though: * `Account` * `Username` * `Admin` + * `Wildcard` * `PasswordHash` diff --git a/internal/store/account.go b/internal/store/account.go index d98e59a..079954e 100644 --- a/internal/store/account.go +++ b/internal/store/account.go @@ -25,6 +25,10 @@ type Account struct { // is an admin, but others may be set up too if desired. Admin bool + // Wildcard users are last-resort destinations for incoming mail. A domain + // should only have one of them. + Wildcard bool `storm:"index"` + // As generated by HashPassword PasswordHash string }