Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Authentication Controller in Service Project #35

Open
qagwaai opened this issue Jun 28, 2017 · 0 comments
Open

Authentication Controller in Service Project #35

qagwaai opened this issue Jun 28, 2017 · 0 comments

Comments

@qagwaai
Copy link

qagwaai commented Jun 28, 2017

	public string UserId
	{
		get
		{
			if (_userId == null) { }
			{
				var claimsUser = (ClaimsPrincipal)User;
				var id = claimsUser?.FindFirst(ClaimTypes.NameIdentifier);
				if(id != null)
					_userId = id.Value;
			}

			return _userId;
		}
	}

There seems to be an extra { } on the if line - do you agree?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant