feat(GtxMessagingService): Konfigurierte Codelänge über ioptions.
- Standardmäßig ist sie 5
This commit is contained in:
parent
0c81a86610
commit
b779ef6f0b
@ -18,5 +18,7 @@ namespace EnvelopeGenerator.Application.Configurations.GtxMessaging
|
||||
public string RecipientQueryParamName { get; init; } = "to";
|
||||
|
||||
public string MessageQueryParamName { get; init; } = "text";
|
||||
|
||||
public int CodeLength { get; init; } = 5;
|
||||
}
|
||||
}
|
||||
@ -43,7 +43,7 @@ namespace EnvelopeGenerator.Application.Services
|
||||
|
||||
public async Task<SmsResponse> SendSmsCodeAsync(string recipient)
|
||||
{
|
||||
var code = _codeGen.GenerateCode(5);
|
||||
var code = _codeGen.GenerateCode(_smsParams.CodeLength);
|
||||
return await SendSmsAsync(recipient: recipient, message: code);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user