Correct delete company

This commit is contained in:
Hillel Coren 2021-09-26 14:11:33 +03:00
parent f37ecb513d
commit eb0a7fc6b0
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ void passwordCallback({
try {
GoogleOAuth.signIn((idToken, accessToken) {
if (!state.company.oauthPasswordRequired || !state.user.hasPassword) {
if ((!alwaysRequire && !state.company.oauthPasswordRequired) ||
!state.user.hasPassword) {
callback(null, idToken);
} else {
showDialog<AlertDialog>(