feat(verify): phone + email

This commit is contained in:
mso7nueh
2025-05-22 18:05:32 +03:00
parent 067e0929ed
commit 8dcfa6ee6a
11 changed files with 127 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ class RegistrationCubit extends Cubit<RegistrationState> {
birthdate: '',
gender: '',
location: '',
responseBody: '',
responseBody: '{}',
lang: 'Русский',
weight: 0,
height: 0,
@@ -54,6 +54,7 @@ class RegistrationCubit extends Cubit<RegistrationState> {
final token = await registrationRepository.tryRegister(
state.sheet.copyWith(
phone: state.sheet.phone.replaceAll(' ', '').replaceAll('(', '').replaceAll(')', ''),
responseBody: '{}',
),
);
await TokenStorage.saveTokenInStorage(token);