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

Authentication Controller in Service Project #35

Description

@qagwaai
	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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions