package verificationimp

import (
	"strings"

	"github.com/tech/sendico/pkg/model"
)

func (a *VerificationAPI) resolveTarget(reqDest string, account *model.Account) string {
	target := strings.ToLower(strings.TrimSpace(reqDest))
	if target == "" && account != nil {
		target = strings.ToLower(strings.TrimSpace(account.Login))
	}
	return target
}
