forked from baron/baron-sso
root page 변경
This commit is contained in:
@@ -67,7 +67,7 @@ class _CreateUserScreenState extends State<CreateUserScreen> {
|
||||
|
||||
// If cancelled or empty
|
||||
if (inputPassword == null || inputPassword.isEmpty) {
|
||||
if (mounted) context.go('/dashboard'); // Kick out
|
||||
if (mounted) context.go('/'); // Kick out
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class _CreateUserScreenState extends State<CreateUserScreen> {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Invalid Password. Access Denied.'), backgroundColor: Colors.red),
|
||||
);
|
||||
context.go('/dashboard'); // Kick out
|
||||
context.go('/'); // Kick out
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -152,7 +152,7 @@ class _CreateUserScreenState extends State<CreateUserScreen> {
|
||||
title: const Text('Create User'),
|
||||
leading: IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () => context.go('/dashboard'),
|
||||
onPressed: () => context.go('/'),
|
||||
),
|
||||
),
|
||||
body: Center(
|
||||
|
||||
@@ -78,7 +78,7 @@ class _UserManagementScreenState extends State<UserManagementScreen> with Single
|
||||
);
|
||||
|
||||
if (inputPassword == null || inputPassword.isEmpty) {
|
||||
if (mounted) context.go('/dashboard');
|
||||
if (mounted) context.go('/');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ class _UserManagementScreenState extends State<UserManagementScreen> with Single
|
||||
} else {
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Invalid Password'), backgroundColor: Colors.red));
|
||||
context.go('/dashboard');
|
||||
context.go('/');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -277,7 +277,7 @@ class _UserManagementScreenState extends State<UserManagementScreen> with Single
|
||||
title: const Text('User Management'),
|
||||
leading: IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () => context.go('/dashboard'),
|
||||
onPressed: () => context.go('/'),
|
||||
),
|
||||
bottom: TabBar(
|
||||
controller: _tabController,
|
||||
|
||||
Reference in New Issue
Block a user