Back to hex keys after all

This commit is contained in:
Neil Alexander
2021-07-09 00:26:43 +01:00
parent 0735fa74de
commit 6b9755276b
11 changed files with 24 additions and 38 deletions

View File

@@ -1,11 +1,11 @@
package imapserver
import (
"encoding/hex"
"errors"
"fmt"
"github.com/emersion/go-imap/backend"
"github.com/jxskiss/base62"
)
type User struct {
@@ -14,7 +14,7 @@ type User struct {
}
func (u *User) Username() string {
return base62.EncodeToString(u.backend.Config.PublicKey)
return hex.EncodeToString(u.backend.Config.PublicKey)
}
func (u *User) ListMailboxes(subscribed bool) (mailboxes []backend.Mailbox, err error) {