Skip to content

Commit

Permalink
Disabled Test Face Login
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmominsakib committed Oct 17, 2024
1 parent ebd6269 commit 568aa5b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/core/auth/controllers/signup_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SignUpController extends GetxController {
userProfilePicture: null,
userFace: null,
deviceIDToken: _idTokenOfDevice,
).toMap,
).toMap(isAdmin: false),
);
await credintial.user!.sendEmailVerification();
await Get.dialog(const EmailSentSuccessfullDialog());
Expand Down
5 changes: 5 additions & 0 deletions lib/error_screen.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import 'package:face_attendance/core/auth/controllers/login_controller.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:restart_app/restart_app.dart';

class ErrorScreen extends StatelessWidget {
Expand Down Expand Up @@ -39,6 +43,7 @@ class ErrorScreen extends StatelessWidget {
ElevatedButton(
child: const Text('Restart App'),
onPressed: () {
FirebaseAuth.instance.signOut();
Restart.restartApp(
notificationTitle: 'Restarting App',
notificationBody: 'Please tap here to open the app again.',
Expand Down
20 changes: 10 additions & 10 deletions lib/features/03_attendance/views/pages/main_attendance_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ class AttendancePage extends StatelessWidget {
child: SafeArea(
child: Column(
children: [
AppButton(
label: 'Test Face Login',
onTap: () => Get.to(() => const VerifierTestFaceLoginPage()),
margin: EdgeInsets.zero,
suffixIcon: const Icon(
Icons.arrow_forward_ios_rounded,
color: Colors.white,
),
disableBorderRadius: true,
),
// AppButton(
// label: 'Test Face Login',
// onTap: () => Get.to(() => const VerifierTestFaceLoginPage()),
// margin: EdgeInsets.zero,
// suffixIcon: const Icon(
// Icons.arrow_forward_ios_rounded,
// color: Colors.white,
// ),
// disableBorderRadius: true,
// ),
/* <---- Header ----> */
const HeaderMainPage(),
/* <---- Attendance List -----> */
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A new Flutter project.

publish_to: "none"

version: 1.0.0+1
version: 1.0.1+2

environment:
sdk: '>=3.1.3 <4.0.0'
Expand Down

0 comments on commit 568aa5b

Please sign in to comment.