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

@@ -185,4 +185,16 @@ class ProfileRepository {
Future<String> getPassKey(String phone) async {
return (jsonDecode((await profileService.getPassKey(json: '{"route_name": "user_detailz.change-phone-verify", "route_params": {"phone": "$phone"}}'))))['key_is']!;
}
Future<String> getMyPhone() async {
return (jsonDecode(await profileService.getMyPhone())['phone']);
}
Future<void> sendEmailCode() async {
return await profileService.sendEmailCode();
}
Future<void> tryVerifyEmailByCode(String code) async {
return await profileService.tryVerifyEmailByCode(code: "{\"code\": \"$code\"}");
}
}