fix: review changes

This commit is contained in:
Stefan Benz
2024-10-02 11:38:16 +02:00
142 changed files with 5787 additions and 1198 deletions

View File

@@ -54,17 +54,6 @@ func (p *Phone) Normalize() error {
return nil
}
func NewPhoneCode(phoneGenerator crypto.Generator) (*PhoneCode, error) {
phoneCodeCrypto, _, err := crypto.NewCode(phoneGenerator)
if err != nil {
return nil, err
}
return &PhoneCode{
Code: phoneCodeCrypto,
Expiry: phoneGenerator.Expiry(),
}, nil
}
type PhoneState int32
const (