Rename to login path if no auth

This commit is contained in:
Moe Poi ~ 2022-05-16 11:43:42 +07:00
parent 7045b124ac
commit b858751146

View file

@ -1,3 +1,4 @@
import 'package:universal_html/html.dart' as html;
import 'package:flutter/material.dart';
import 'package:nekoya_flutter/data/auth.dart';
@ -19,6 +20,7 @@ class NavigationAuth extends StatelessWidget {
if (data) {
return route;
} else {
html.window.history.pushState(null, '', '/login');
return const Login();
}
} else {