Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task<IActionResult> Login(string userName) {
- var account = await _db.FindByUserNameAsync(userName);
- if (account != null) {
- Response
- .Cookies
- .Append
- (userName,
- account.ExternalId);
- }
- return Ok();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement