public string Login(string login, string password) { var account = _storage.FindAccount(login, password); if (account == null) { return(null); } var token = Guid.NewGuid().ToString(); _tokens.Add(token, account.Id); return(token); }
public string Login(string login, string password) { var account = _storage.FindAccount(login, password); if (account == null) { return(null); } var token = Guid.NewGuid().ToString(); _tokens.Add(token, account.Id); return(token); }