Fixed password and otp bugs
This commit is contained in:
@@ -2,5 +2,6 @@ class AuthApi {
|
||||
static const String login = '/api/v1/profile/login';
|
||||
static const String logout = '/api/v1/profile/logout';
|
||||
static const String forgotPassword = '/api/v1/profile/forgot-password';
|
||||
static const String forgotPasswordOtp = '/api/v1/profile/verify-otp';
|
||||
static const String resetPassword = '/api/v1/profile/reset-password';
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class AuthService {
|
||||
final data = jsonEncode({"code": code, "email": email});
|
||||
|
||||
final result = await _networkManager.makeRequest(
|
||||
"/api/v1/profile/verify-otp",
|
||||
AuthApi.forgotPasswordOtp,
|
||||
method: 'POST',
|
||||
(json) => VerifyOtpResponseModel.fromJson(json),
|
||||
data: data,
|
||||
|
||||
Reference in New Issue
Block a user