mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-08 06:16:37 +08:00
Fix login stalls and bot redemption routing
This commit is contained in:
@@ -549,7 +549,7 @@ func (s *TelegramBotService) redeemRegisterFlow(ctx context.Context, channel *mo
|
||||
}
|
||||
|
||||
func (s *TelegramBotService) createUserFromRegistrationCode(ctx context.Context, rawCode string) (*model.User, string, *model.RegistrationCode, error) {
|
||||
code := strings.TrimSpace(rawCode)
|
||||
code := normalizeRedemptionCode(rawCode)
|
||||
if code == "" {
|
||||
return nil, "", nil, errRegistrationCodeAlreadyUsed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user