check pin login

This commit is contained in:
tzw
2025-02-18 16:50:34 +06:30
parent 8f57098a6f
commit 1c15c3cf9f
3 changed files with 27 additions and 1 deletions

View File

@@ -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(