move to network folder
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import '../../core/utils/app_exceptions.dart';
|
||||
import '../../core/network/app_exceptions.dart';
|
||||
import '../../core/utils/result.dart';
|
||||
import '../models/user_model.dart';
|
||||
import '../services/auth_service.dart';
|
||||
@@ -15,9 +15,9 @@ class AuthRepository {
|
||||
final user = UserModel(token: response['token'], name: response['name']);
|
||||
return Result.ok(user);
|
||||
} on Exception {
|
||||
return Result.error(
|
||||
AuthenticationException('Email or password is not correct.'),
|
||||
);
|
||||
}
|
||||
return Result.error(
|
||||
AuthenticationException('Email or password is not correct.'),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user