Fixed password and otp bugs

This commit is contained in:
llsajjad
2025-09-17 15:58:49 +03:30
parent 9970d3f296
commit 6a51c3656a
11 changed files with 352 additions and 136 deletions
+1
View File
@@ -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';
}
+1 -1
View File
@@ -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,