mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-14 14:48:35 -07:00
add sasl-only config option
This commit is contained in:
@@ -456,7 +456,7 @@ func (am *AccountManager) setPassword(account string, password string) (err erro
|
||||
}
|
||||
|
||||
func (am *AccountManager) dispatchCallback(client *Client, casefoldedAccount string, callbackNamespace string, callbackValue string) (string, error) {
|
||||
if callbackNamespace == "*" || callbackNamespace == "none" {
|
||||
if callbackNamespace == "*" || callbackNamespace == "none" || callbackNamespace == "admin" {
|
||||
return "", nil
|
||||
} else if callbackNamespace == "mailto" {
|
||||
return am.dispatchMailtoCallback(client, casefoldedAccount, callbackValue)
|
||||
@@ -590,7 +590,9 @@ func (am *AccountManager) Verify(client *Client, account string, code string) er
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
am.Login(client, clientAccount)
|
||||
if client != nil {
|
||||
am.Login(client, clientAccount)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user