Advertisement
Guest User

Untitled

a guest
Nov 29th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Task<IActionResult> Login(string userName) {
  2. var account = await _db.FindByUserNameAsync(userName);
  3. if (account != null) {
  4. Response
  5. .Cookies
  6. .Append
  7. (userName,
  8. account.ExternalId);
  9. }
  10. return Ok();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement