fix: Login bug
This commit is contained in:
parent
bc3d935b4a
commit
b6cc3de4f3
|
|
@ -213,7 +213,7 @@ public class UserService : IUserService
|
||||||
var (id, password) = base64.SplitAsTuple(":");
|
var (id, password) = base64.SplitAsTuple(":");
|
||||||
|
|
||||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||||||
var record = id.Contains("@") ? db.GetUserByEmail(id) : db.GetUserByUserName(id);
|
var record = id.Contains("@") ? db.GetUserByEmail(id) : db.GetUserByPhone(id);
|
||||||
if (record == null)
|
if (record == null)
|
||||||
{
|
{
|
||||||
record = db.GetUserByUserName(id);
|
record = db.GetUserByUserName(id);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue