check pin login
This commit is contained in:
@@ -408,6 +408,17 @@ class _HomePageState extends State<HomePage> {
|
||||
|
||||
final pinLoginBtn = IconButton(
|
||||
onPressed: () {
|
||||
if (!mainModel.hasPinLogin()) {
|
||||
showMsgDialog(context, "Error", "Login user doesn't have permission");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mainModel.allowPin()) {
|
||||
showMsgDialog(
|
||||
context, "Error", "Login user has more than one privilege");
|
||||
return;
|
||||
}
|
||||
|
||||
Navigator.pushAndRemoveUntil(
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
|
||||
Reference in New Issue
Block a user