aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/JwtTokenUnitTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-05-16 21:57:56 +0800
committercrupest <crupest@outlook.com>2019-05-16 21:57:56 +0800
commit3de4179449a209646e0e5a967d270f7fa0878c03 (patch)
treea71563526342e8cc4a2c99227fcd178ea6d1fbde /Timeline.Tests/JwtTokenUnitTest.cs
parent461a37e3f2058d98c69cf598c1cd34a1d405a11e (diff)
downloadtimeline-3de4179449a209646e0e5a967d270f7fa0878c03.tar.gz
timeline-3de4179449a209646e0e5a967d270f7fa0878c03.tar.bz2
timeline-3de4179449a209646e0e5a967d270f7fa0878c03.zip
Change roles in UserInfo into isadmin.
Diffstat (limited to 'Timeline.Tests/JwtTokenUnitTest.cs')
-rw-r--r--Timeline.Tests/JwtTokenUnitTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline.Tests/JwtTokenUnitTest.cs b/Timeline.Tests/JwtTokenUnitTest.cs
index 8a503bd7..a4e5432f 100644
--- a/Timeline.Tests/JwtTokenUnitTest.cs
+++ b/Timeline.Tests/JwtTokenUnitTest.cs
@@ -78,7 +78,7 @@ namespace Timeline.Tests
Assert.True(result.IsValid);
Assert.NotNull(result.UserInfo);
Assert.Equal(createTokenResult.UserInfo.Username, result.UserInfo.Username);
- Assert.Equal(createTokenResult.UserInfo.Roles, result.UserInfo.Roles);
+ Assert.Equal(createTokenResult.UserInfo.IsAdmin, result.UserInfo.IsAdmin);
}
}
}