aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-12 23:21:31 +0800
committercrupest <crupest@outlook.com>2020-11-12 23:21:31 +0800
commit34dea0b713aaac265909fe24eeb9483c9ec8fe2a (patch)
tree2dc2706c9d7ccd0ac2e45284bd9ff707cc49f769 /BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
parente4c4a284571d51dcda373a0a1c047e634b17882d (diff)
downloadtimeline-34dea0b713aaac265909fe24eeb9483c9ec8fe2a.tar.gz
timeline-34dea0b713aaac265909fe24eeb9483c9ec8fe2a.tar.bz2
timeline-34dea0b713aaac265909fe24eeb9483c9ec8fe2a.zip
...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
index 480d66cd..f4a406d1 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
@@ -103,7 +103,8 @@ namespace Timeline.Tests.IntegratedTests
{
// create a user for test
var userService = scope.ServiceProvider.GetRequiredService<IUserService>();
- await userService.ModifyUser("user1", new User { Password = "user1pw" });
+ var id = await userService.GetUserIdByUsername("user1");
+ await userService.ModifyUser(id, new ModifyUserParams { Password = "user1pw" });
}
(await client.PostAsJsonAsync(VerifyTokenUrl,