mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
test(auth): format the password change request
This commit is contained in:
parent
b7be07411e
commit
cc46950254
1 changed files with 7 additions and 6 deletions
|
|
@ -39,12 +39,13 @@ public sealed class SessionRevocationTests
|
|||
var other = await host.SignInAsync("sam@example.com");
|
||||
await AssertAcceptedAsync(host, other);
|
||||
|
||||
using (var changed = await host.SendAsync(HttpMethod.Post, "api/Authentication/ChangePassword", before, new
|
||||
{
|
||||
currentpassword = SessionTestHost.Password,
|
||||
newpassword = NewPassword,
|
||||
confirmpassword = NewPassword
|
||||
}))
|
||||
var change = new
|
||||
{
|
||||
currentpassword = SessionTestHost.Password,
|
||||
newpassword = NewPassword,
|
||||
confirmpassword = NewPassword
|
||||
};
|
||||
using (var changed = await host.SendAsync(HttpMethod.Post, "api/Authentication/ChangePassword", before, change))
|
||||
Assert.Equal(HttpStatusCode.OK, changed.StatusCode);
|
||||
|
||||
await AssertRefusedAsync(host, before);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue