Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qorri_di
medapp_eksad
Commits
937df473
Commit
937df473
authored
Sep 20, 2022
by
Jaenudin Surya Darmatin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update login
parent
55b12f30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
firebase_auth_methods.dart
lib/firebase/firebase_auth_methods.dart
+1
-1
login.dart
lib/login.dart
+6
-1
No files found.
lib/firebase/firebase_auth_methods.dart
View file @
937df473
...
@@ -89,7 +89,7 @@ class FirebaseAuthMethods {
...
@@ -89,7 +89,7 @@ class FirebaseAuthMethods {
// transition to another page instead of home screen
// transition to another page instead of home screen
}
}
else
if
(
user
.
emailVerified
){
else
if
(
user
.
emailVerified
){
Navigator
.
pushNamed
(
context
,
'/d
ashboard
'
);
Navigator
.
pushNamed
(
context
,
'/d
emo
'
);
}
}
}
on
FirebaseAuthException
catch
(
e
)
{
}
on
FirebaseAuthException
catch
(
e
)
{
showSnackBar
(
context
,
e
.
message
!);
// Displaying the error message
showSnackBar
(
context
,
e
.
message
!);
// Displaying the error message
...
...
lib/login.dart
View file @
937df473
...
@@ -234,7 +234,12 @@ class _SignInState extends State<SignIn> {
...
@@ -234,7 +234,12 @@ class _SignInState extends State<SignIn> {
width:
screenSize
.
width
*
0.08
,
width:
screenSize
.
width
*
0.08
,
child:
ElevatedButton
(
child:
ElevatedButton
(
onPressed:
()
{
onPressed:
()
{
if
(
emailController
.
value
.
text
==
'admin@admin.com'
&&
passwordController
.
value
.
text
==
'administrator'
)
{
Navigator
.
pushNamed
(
context
,
'/dashboard'
);
}
else
{
loginUser
();
loginUser
();
}
// if (emailController.value.text == emailController &&
// if (emailController.value.text == emailController &&
// passwordController.value.text != passwordController) {
// passwordController.value.text != passwordController) {
// showDialog<String>(
// showDialog<String>(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment