Add OtpDialogService for mobile-friendly OTP authentication dialog
This commit is contained in:
@@ -35,20 +35,20 @@ public class AuthService
|
||||
public async Task<bool> IsCompleteRegisterAsync()
|
||||
{
|
||||
await InitUserAuthInfo();
|
||||
if (_userAuthInfo.NationalCode ==null || _userAuthInfo.FirstName == null || _userAuthInfo.LastName == null || !_userAuthInfo.IsSignMainContract)
|
||||
if (!string.IsNullOrWhiteSpace(_userAuthInfo.NationalCode) && !string.IsNullOrWhiteSpace(_userAuthInfo.FirstName) && !string.IsNullOrWhiteSpace(_userAuthInfo.LastName) && _userAuthInfo.IsSignMainContract)
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
public bool IsCompleteRegister()
|
||||
{
|
||||
InitUserAuthInfo().GetAwaiter();
|
||||
if (_userAuthInfo.NationalCode ==null || _userAuthInfo.FirstName == null || _userAuthInfo.LastName == null || _userAuthInfo.IsSignMainContract)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
if (!string.IsNullOrWhiteSpace(_userAuthInfo.NationalCode) && !string.IsNullOrWhiteSpace(_userAuthInfo.FirstName) && !string.IsNullOrWhiteSpace(_userAuthInfo.LastName) && _userAuthInfo.IsSignMainContract)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public async Task<UserAuthInfo> GetUserAuthInfo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user