From e228366a231a1358e30fc9f4bb65c8469c47de13 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 19 Jun 2022 12:01:30 +0300 Subject: [PATCH] Microsoft Login --- lib/ui/auth/login_view.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ui/auth/login_view.dart b/lib/ui/auth/login_view.dart index 715c1c33a..3aad87472 100644 --- a/lib/ui/auth/login_view.dart +++ b/lib/ui/auth/login_view.dart @@ -203,6 +203,8 @@ class _LoginState extends State { email: _emailController.text, password: _passwordController.text, ); + } else if (_loginType == LOGIN_TYPE_MICROSOFT) { + viewModel.onMicrosoftSignUpPressed(context, completer); } else { viewModel.onGoogleSignUpPressed(context, completer); } @@ -273,6 +275,11 @@ class _LoginState extends State { oneTimePassword: _oneTimePasswordController.text, ); } + } else if (_loginType == LOGIN_TYPE_MICROSOFT) { + viewModel.onMicrosoftLoginPressed(context, completer, + url: url, + secret: _isSelfHosted ? _secretController.text : '', + oneTimePassword: _oneTimePasswordController.text); } else { viewModel.onGoogleLoginPressed(context, completer, url: url, @@ -575,6 +582,8 @@ class _LoginState extends State { children: [ if (_loginType == LOGIN_TYPE_EMAIL) Icon(Icons.mail, color: Colors.white) + else if (_loginType == LOGIN_TYPE_MICROSOFT) + Icon(MdiIcons.microsoft, color: Colors.white) else ClipOval( child: Image.asset(