fix: Existing exception
This commit is contained in:
parent
bc33e6d8cd
commit
afb9f446a1
|
|
@ -466,7 +466,7 @@ public class UserService : IUserService
|
|||
|
||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||||
var emailName = db.GetUserByEmail(email);
|
||||
if (emailName != null /*&& emailName.Verified*/)
|
||||
if (emailName != null && emailName.Verified)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
@ -483,7 +483,7 @@ public class UserService : IUserService
|
|||
|
||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||||
var UserByphone = db.GetUserByPhone(phone);
|
||||
if (UserByphone != null/* && UserByphone.Verified*/)
|
||||
if (UserByphone != null && UserByphone.Verified)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue