mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
checkEmail
This commit is contained in:
@ -76,8 +76,6 @@ class UserPermissionApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Future<String?> checkEmail(String email) async {
|
Future<String?> checkEmail(String email) async {
|
||||||
try {
|
try {
|
||||||
final response = await _httpService.post(
|
final response = await _httpService.post(
|
||||||
@ -99,7 +97,6 @@ class UserPermissionApi {
|
|||||||
return response ?? 'Unknown error occurred';
|
return response ?? 'Unknown error occurred';
|
||||||
} on DioException catch (e) {
|
} on DioException catch (e) {
|
||||||
if (e.response != null) {
|
if (e.response != null) {
|
||||||
print(e.response?.data['error']);
|
|
||||||
final errorMessage = e.response?.data['error'];
|
final errorMessage = e.response?.data['error'];
|
||||||
return errorMessage is String
|
return errorMessage is String
|
||||||
? errorMessage
|
? errorMessage
|
||||||
|
Reference in New Issue
Block a user