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(
|
||||
|
||||
Reference in New Issue
Block a user