mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-04 19:16:28 +03:00
Back to hex keys after all
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user