mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 07:16:54 +00:00
fix: review changes
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user