Use login flag to show login tab
This commit is contained in:
parent
54230cd313
commit
3f8eb3e60e
|
|
@ -22,6 +22,8 @@ import 'package:invoiceninja_flutter/.env.dart';
|
|||
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||||
import 'package:rounded_loading_button/rounded_loading_button.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:invoiceninja_flutter/utils/web_stub.dart'
|
||||
if (dart.library.html) 'package:invoiceninja_flutter/utils/web.dart';
|
||||
|
||||
class LoginView extends StatefulWidget {
|
||||
const LoginView({
|
||||
|
|
@ -72,7 +74,7 @@ class _LoginState extends State<LoginView> {
|
|||
if (kIsWeb) {
|
||||
final authState = widget.viewModel.authState;
|
||||
_isSelfHosted = authState.isSelfHost;
|
||||
if (_isSelfHosted) {
|
||||
if (_isSelfHosted || WebUtils.getHtmlValue('login') == 'true') {
|
||||
_emailLogin = true;
|
||||
_createAccount = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html data-report-errors="1" data-rc="" data-user-agent="">
|
||||
<html data-report-errors="1" data-rc="" data-user-agent="" data-login="">
|
||||
<head>
|
||||
<base href="/">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue