/// <summary> /// Get user from the database /// </summary> public Nancy.Security.IUserIdentity GetUserFromIdentifier(Guid identifier, Nancy.NancyContext context) { var person = _people.People.FirstOrDefault(p => p.Id == identifier); if (person == null) return null; var user = new FloreamIdentity { UserName = person.AdUser }; return user; }
/// <summary> /// Get user from the database /// </summary> public Nancy.Security.IUserIdentity GetUserFromIdentifier(Guid identifier, Nancy.NancyContext context) { var person = _people.People.FirstOrDefault(p => p.Id == identifier); if (person == null) { return(null); } var user = new FloreamIdentity { UserName = person.AdUser }; return(user); }