mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 02:07:55 +00:00
bug fixes and read sensors states
This commit is contained in:
@@ -208,6 +208,7 @@ class AuthCubit extends Cubit<AuthState> {
|
||||
|
||||
sendOtp() async {
|
||||
try {
|
||||
emit(AuthLoading());
|
||||
await AuthenticationAPI.sendOtp(body: {'email': email, 'type': 'VERIFICATION'});
|
||||
emit(AuthSignUpSuccess());
|
||||
} catch (_) {
|
||||
@@ -217,6 +218,7 @@ class AuthCubit extends Cubit<AuthState> {
|
||||
|
||||
reSendOtp() async {
|
||||
try {
|
||||
emit(AuthLoading());
|
||||
await AuthenticationAPI.sendOtp(body: {'email': email, 'type': 'VERIFICATION'});
|
||||
emit(ResendOtpSuccess());
|
||||
} catch (_) {
|
||||
|
||||
Reference in New Issue
Block a user