mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-25 21:37:56 +00:00
password expired.
This commit is contained in:
@@ -85,6 +85,9 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
|
||||
} else if (response == "You entered wrong otp") {
|
||||
forgetValidate = 'Wrong one time password.';
|
||||
emit(AuthInitialState());
|
||||
}else if (response == "OTP expired") {
|
||||
forgetValidate = 'One time password has been expired.';
|
||||
emit(AuthInitialState());
|
||||
}
|
||||
} catch (failure) {
|
||||
// forgetValidate='Invalid Credentials!';
|
||||
@@ -92,7 +95,7 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
|
||||
// emit(FailureForgetState(error: failure.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
//925207
|
||||
String? validateCode(String? value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return 'Code is required';
|
||||
|
||||
Reference in New Issue
Block a user